Skip to main content

Path parameters

taskId
number
required
ID of the task to delete.

Response

204 No Content — The task was deleted. The response body is empty. All task completion records associated with this task are also deleted automatically via the database ON DELETE CASCADE constraint.

Errors

StatusCondition
400The task exists but belongs to a different user.
404No task found with the given taskId.
401Missing or invalid authentication token.
curl --request DELETE \
  --url http://localhost:3000/api/tasks/42 \
  --header 'Authorization: Bearer <token>'
(empty body)

Build docs developers (and LLMs) love