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