Skip to main content
DELETE
/
doctor
/
{crm}
Delete Doctor
curl --request DELETE \
  --url https://api.example.com/doctor/{crm}
{
  "404 Not Found": {},
  "200 OK": {}
}
Delete a doctor from the system by CRM number.

Path Parameters

crm
string
required
The CRM number of the doctor to delete.

Response

Returns a success or error message string.

Example Request

curl -X DELETE http://localhost:8080/doctor/123456789

Example Response

Success (200 OK)

Doutor deletado com sucesso!

Error (404 Not Found)

Returns an empty response body with HTTP status 404.

Error Responses

404 Not Found
error
Doctor with the specified CRM number not found. No response body is returned.
200 OK
success
Doctor successfully deleted. Returns message: “Doutor deletado com sucesso!”

Build docs developers (and LLMs) love