---
title: "Delete a task"
method: DELETE
path: "/tasks/{id}"
tags: ["task"]
---

# Delete a task

`DELETE /tasks/{id}`

Deletes a task from a project. This does not mean "mark it done".

## Path parameters

- `id` integer, required

## Response `200`

The created task object.

- ModelsMessage
  - `message` string — A standard message.

## Other responses

- `400` — Invalid task ID provided.
- `403` — The user does not have access to the project
- `500` — Internal error

---

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