Public/Remove-GCFlow.ps1
|
<# .SYNOPSIS Deletes a flow from Genesys Cloud. .DESCRIPTION Deletes an architect flow by its unique identifier using the Genesys Cloud API. API Endpoint: DELETE /api/v2/flows/{flowId} .PARAMETER FlowId The unique identifier of the flow to delete. .EXAMPLE Remove-GCFlow -FlowId 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' Deletes the flow with the specified ID. .NOTES Genesys Cloud API: DELETE /api/v2/flows/{flowId} #> function Remove-GCFlow { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$FlowId ) $endpoint = "flows/$FlowId" return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE } |