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