Public/Remove-GCArchitectIvr.ps1

<#
.SYNOPSIS
    Deletes an IVR configuration from Genesys Cloud.

.DESCRIPTION
    Deletes an architect IVR configuration by its unique identifier using the Genesys Cloud API.
    API Endpoint: DELETE /api/v2/architect/ivrs/{ivrId}

.PARAMETER IvrId
    The unique identifier of the IVR configuration to delete.

.EXAMPLE
    Remove-GCArchitectIvr -IvrId 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
    Deletes the IVR configuration with the specified ID.

.NOTES
    Genesys Cloud API: DELETE /api/v2/architect/ivrs/{ivrId}
#>

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

    $endpoint = "architect/ivrs/$IvrId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE
}