Public/Remove-GCRoutingLanguage.ps1

<#
.SYNOPSIS
    Deletes a routing language from Genesys Cloud.

.DESCRIPTION
    Removes a routing language from Genesys Cloud by sending a DELETE request.
    API Endpoint: DELETE /api/v2/routing/languages/{languageId}

.PARAMETER LanguageId
    The unique identifier of the routing language to delete.

.EXAMPLE
    Remove-GCRoutingLanguage -LanguageId '12345678-1234-1234-1234-123456789012'
    Deletes the routing language with the specified ID.

.NOTES
    Genesys Cloud API: DELETE /api/v2/routing/languages/{languageId}
#>

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

    $endpoint = "routing/languages/$LanguageId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE
}