Public/Remove-GCTokensMe.ps1

<#
.SYNOPSIS
    Deletes (revokes) the current access token.

.DESCRIPTION
    Revokes the currently authenticated access token in Genesys Cloud, effectively logging out.
    Uses the DELETE /api/v2/tokens/me endpoint.

.EXAMPLE
    Remove-GCTokensMe

.NOTES
    Genesys Cloud API: DELETE /api/v2/tokens/me
#>

function Remove-GCTokensMe {
    [CmdletBinding()]
    param()

    $endpoint = "tokens/me"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE
}