Skip to main content
DELETE
/
tasks
/
:id
curl -X DELETE http://localhost:3000/tasks/1 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
{
  "message": "Task deleted successfully",
  "id": 1
}
This endpoint requires implementation in the backend. Documentation reflects the expected API design based on the Task model schema.

Authentication

This endpoint requires a valid JWT token in the Authorization header.
Authorization: Bearer YOUR_JWT_TOKEN

Path Parameters

id
integer
required
The unique identifier of the task to delete

Response

message
string
Confirmation message that the task was deleted
id
integer
The ID of the deleted task
curl -X DELETE http://localhost:3000/tasks/1 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
{
  "message": "Task deleted successfully",
  "id": 1
}

Build docs developers (and LLMs) love