Appointments
Delete Appointment
Permanently delete an appointment you own by its ID
DELETE
Overview
Permanently deletes an appointment. Access is owner-only: the appointment’sdoctor_id must match the caller, otherwise a 403 Forbidden is returned.
Authentication
Bearer token for authenticated access.
Path Parameters
Appointment ObjectId to delete. Owner-only. A malformed value fails with a
400 cast error.Response
Whether the deletion succeeded. On success the body is
{ "success": true }
with no data.Example Request
Example Response
Error Responses
403 Forbidden is returned when the appointment is owned by a different
doctor. A missing or invalid Bearer token returns 401 with a message key.Side Effects
- Every document attached to the appointment is cascade-deleted along with it.
- Other appointments that share the same
case_idare not affected.