Public/Remove-GCCoachingAppointment.ps1

<#
.SYNOPSIS
    Deletes a coaching appointment.

.DESCRIPTION
    Removes the specified coaching appointment from Genesys Cloud.
    Uses the DELETE /api/v2/coaching/appointments/{appointmentId} endpoint.

.PARAMETER AppointmentId
    The unique identifier of the coaching appointment to delete.

.EXAMPLE
    Remove-GCCoachingAppointment -AppointmentId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'

.NOTES
    Genesys Cloud API: DELETE /api/v2/coaching/appointments/{appointmentId}
#>

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

    $endpoint = "coaching/appointments/$AppointmentId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE
}