Public/Remove-GCProcessAutomationTrigger.ps1

<#
.SYNOPSIS
    Deletes a process automation trigger.

.DESCRIPTION
    Removes the specified process automation trigger from Genesys Cloud.
    Uses the DELETE /api/v2/processautomation/triggers/{triggerId} endpoint.

.PARAMETER TriggerId
    The unique identifier of the trigger to delete.

.EXAMPLE
    Remove-GCProcessAutomationTrigger -TriggerId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'

.NOTES
    Genesys Cloud API: DELETE /api/v2/processautomation/triggers/{triggerId}
#>

function Remove-GCProcessAutomationTrigger {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [string]$TriggerId
    )

    $endpoint = "processautomation/triggers/$TriggerId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE
}