---
title: "Delete a task"
method: DELETE
path: "/api/tasks/{id}"
---

# Delete a task

`DELETE /api/tasks/{id}`

## Request

- Base URL: `https://taskhold.com`
- URL: `https://taskhold.com/api/tasks/{id}`
- Auth: HTTP bearer

Deletes the task and its notes and history.

## Response `200`

OK

- Success
  - `success` boolean

## Other responses

- `401`: Missing, malformed or unknown API key. `reason` is one of missing_key, bad_header, not_a_taskhold_key, unknown_key; `message` says what to do and `url` links to Settings.
- `402`: The key is valid but the account has no active subscription. `url` links to Billing.
- `404`: Task not found
- `500`: Server error

---

[API](https://skmtc.dev/taskhold/apis/taskhold-api.md) · [All operations](https://skmtc.dev/taskhold/apis/taskhold-api/llms.txt) · [OpenAPI document](https://skmtc.dev/taskhold/apis/taskhold-api/revisions/496ae75d7cdd?raw)
