Public/Service/Tickets/Remove-CWMTicket.ps1

function Remove-CWMTicket {
    [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSShouldProcess', '', Justification = 'Used by sub-function')]
    [CmdletBinding(SupportsShouldProcess, ConfirmImpact='Medium')]
    param(
        [Parameter(Mandatory=$true)]
        [Alias('ticketId')]
        [int]$id
    )

    $Endpoint = "/service/tickets/$($id)"
    return Invoke-CWMDeleteMaster -Endpoint $Endpoint
}