Public/Remove-GCRoutingSkill.ps1

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

.DESCRIPTION
    Removes a routing skill from Genesys Cloud by sending a DELETE request for the specified skill ID.
    API Endpoint: DELETE /api/v2/routing/skills/{skillId}

.PARAMETER SkillId
    The unique identifier of the routing skill to delete.

.EXAMPLE
    Remove-GCRoutingSkill -SkillId '12345678-1234-1234-1234-123456789012'
    Deletes the routing skill with the specified ID.

.NOTES
    Genesys Cloud API: DELETE /api/v2/routing/skills/{skillId}
#>

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

    $endpoint = "routing/skills/$SkillId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE
}