Public/Remove-GCIntegration.ps1

<#
.SYNOPSIS
    Deletes an integration.

.DESCRIPTION
    Removes the specified integration from Genesys Cloud.
    Uses the DELETE /api/v2/integrations/{integrationId} endpoint.

.PARAMETER IntegrationId
    The unique identifier of the integration to delete.

.EXAMPLE
    Remove-GCIntegration -IntegrationId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'

.NOTES
    Genesys Cloud API: DELETE /api/v2/integrations/{integrationId}
#>

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

    $endpoint = "integrations/$IntegrationId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE
}