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

# Delete a task

`DELETE /v1/tasks/{taskId}`

Delete a single task by its ID

## Path parameters

- `taskId` string, required

## Response `200`

Task deleted successfully

- object
  - `success` boolean
  - `message` string

## Other responses

- `404` — Task not found

---

[API](https://skmtc.dev/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.dev/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/6e22489e33cb/schema)
