Remove a task from the TODO list

DELETE /tasks/{taskId}

Permanently removes a task from the TODO list. If a task was completed, use PUT /tasks/{taskId} to update its status to 'completed'

Path parameters

  • taskId integer Required

    The ID of the task to operate on

Responses

  • Task deleted successfully

  • Task not found by the ID provided

DELETE /tasks/{taskId}
curl \
 -X DELETE https://api.todolist.local/v1/tasks/3 \
 -H "Authorization: Bearer $ACCESS_TOKEN"