Public/Remove-GCRoutingWrapupCode.ps1

<#
.SYNOPSIS
    Deletes a wrapup code from Genesys Cloud.

.DESCRIPTION
    Removes a wrapup code from Genesys Cloud by sending a DELETE request.
    API Endpoint: DELETE /api/v2/routing/wrapupcodes/{codeId}

.PARAMETER CodeId
    The unique identifier of the wrapup code to delete.

.EXAMPLE
    Remove-GCRoutingWrapupCode -CodeId '12345678-1234-1234-1234-123456789012'
    Deletes the wrapup code with the specified ID.

.NOTES
    Genesys Cloud API: DELETE /api/v2/routing/wrapupcodes/{codeId}
#>

function Remove-GCRoutingWrapupCode {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [string]$CodeId
    )

    $endpoint = "routing/wrapupcodes/$CodeId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE
}