Overview
Delete notes from MediSync by their unique notes ID. This endpoint performs a hard deletion of the specified notes record from the database.Authentication
Path Parameters
The unique notes ID to delete (not the appointment ID)
Query Parameters
The user ID of the healthcare provider deleting the notes
Response
Indicates if the operation was successful
Error message if the operation failed
Example Response
Behavior Notes
- Direct ID Deletion: This endpoint deletes notes by their specific notes ID, not by appointment ID
- Permanent Deletion: The notes are permanently removed from the database using
findByIdAndDelete - No Soft Delete: There is no soft delete functionality - records are completely removed
- No Cascade Effects: Deleting notes does not affect associated appointments or other records
Status Codes
- 200 - Notes deleted successfully
- 400 - Invalid request or database error
- 404 - Notes not found