Skip to content

Delete Task

This endpoint soft-deletes an existing task by ID.

DELETE /v1/tasks/tasks/:id

Include your API key in the x-api-key header. See Authentication.

tasks:write
ParameterTypeRequiredDescription
idstringYesTask ID to delete.

This endpoint does not accept a request body.

Terminal window
curl -X DELETE "https://api.crewsum.com/v1/tasks/tasks/task-pqr123stu4567890" \
-H "x-api-key: $CREWSUM_API_KEY"

On success, the API returns HTTP 200 OK.

{
"message": "Successfully deleted task task-pqr123stu4567890"
}
  • The task is soft-deleted: it is marked isDeleted: true. Get Task still returns it. List Tasks returns it only when all is "true".
  • You can delete a project’s default task with this endpoint.
  • If no task exists for the ID, the API still returns 200. No webhook is sent in that case.
  • After the task is deleted, Crewsum emits the tasks.deleted webhook event. A webhook delivery failure does not change the API response.
StatusMeaning
400The task ID was missing from the route.
500Crewsum could not delete the task. The message is Error deleting task <id>.

Authentication and scope failures are described in Errors.