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

# Delete a task

`DELETE /tasks/{id}`

Deletes a task by ID.

## Path parameters

- `id` string, cuid, required — The ID of the item

## Headers

- `x-client-id` string, cuid, required — The ID of the client

## Response `200`

Task

- Task
  - `id` string, cuid, required — The ID of the task
  - `title` string, required — The title of the task
  - `text` string, nullable, required — The text of the task
  - `status` 'IN_PROGRESS' | 'ACCEPTED' | 'OPEN' | 'IN_REVIEW' | 'DECLINED', required — The status of the task
  - `dueDate` string, date-time, nullable, required — The due date of a task. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
  - `workspaceId` string, cuid, required — The ID of the workspace
  - `createdById` string, cuid, nullable, required — The ID of the creator
  - `actorType` 'USER' | 'SYSTEM' | 'AI' | 'API', required — The type of the actor
  - `parentId` string, cuid, nullable, required — The ID of the parent task
  - `destinationFolderId` string, cuid, nullable, required — The ID of the destination folder where assigned files will be stored
  - `createdAt` string, date-time, required — The date and time of the creation for the task. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
  - `updatedAt` string, date-time, required — The date and time of the last update for the task. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).

## Other responses

- `401` — Unauthorized
- `404` — Task not found
- `422` — Invalid id error
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.net/steuerboard/apis/steuerboard-api.md) · [All operations](https://skmtc.net/steuerboard/apis/steuerboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/steuerboard/steuerboard-api/versions/9170dd572b31/schema)
