---
title: "Delete Task"
method: DELETE
path: "/api/v1/tasks/{task_id}"
tags: ["Tasks"]
---

# Delete Task

`DELETE /api/v1/tasks/{task_id}`

Delete a task and all of its subtasks.

Returns `NOT_FOUND` when the task does not exist and `FORBIDDEN` when the
authenticated user cannot modify the task.

## Path parameters

- `task_id` string, required — String ID of the task

## Response `200`

Successful Response

- unknown

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/todoist/apis/todoist-api.md) · [All operations](https://skmtc.net/todoist/apis/todoist-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/todoist/todoist-api/revisions/69a962f1578f/schema)
