Public/Remove-GCOAuthClient.ps1
|
<# .SYNOPSIS Deletes an OAuth client. .DESCRIPTION Removes the specified OAuth client from Genesys Cloud. Uses the DELETE /api/v2/oauth/clients/{clientId} endpoint. .PARAMETER ClientId The unique identifier of the OAuth client to delete. .EXAMPLE Remove-GCOAuthClient -ClientId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' .NOTES Genesys Cloud API: DELETE /api/v2/oauth/clients/{clientId} #> function Remove-GCOAuthClient { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$ClientId ) $endpoint = "oauth/clients/$ClientId" return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE } |