Appointments+ Custom Query

Can anyone please tell me which function to trigger to cancel an appointment programmatically in the Appointments+ plugin?