Skip to main content
DELETE
/
api
/
tasks
/
:id
Delete Task
curl --request DELETE \
  --url https://api.example.com/api/tasks/:id

Authentication

This endpoint requires authentication. Include a Bearer token in the Authorization header.

Path Parameters

id
integer
required
The unique identifier of the task to delete

Response

Returns 204 No Content on successful deletion.

Example Request

curl -X DELETE https://api.dailytracker.com/api/tasks/15 \
  -H "Authorization: Bearer YOUR_TOKEN_HERE"

Example Response

204 No Content

Error Responses

401 Unauthorized
Missing or invalid authentication token
{
  "error": "Unauthorized",
  "message": "Invalid or missing authentication token"
}
404 Not Found
Task not found or does not belong to the authenticated user
{
  "error": "Not Found",
  "message": "Task not found"
}

Build docs developers (and LLMs) love