---
title: "Delete Task"
method: DELETE
path: "/v2.0/tasks/{taskId}"
tags: ["Tasks & Appointments V2"]
---

# Delete Task

`DELETE /v2.0/tasks/{taskId}`

Deletes a task or appointment by ID. Caller must have manage permission on the entry's lead.

## Path parameters

- `taskId` integer, required

## Headers

- `Authorization` string, required
- `Content-Type` string, required

## Response `200`

Entry deleted. Response body is a simple message envelope.

- MessageResponse — Generic message response
  - `message` string — Result message

## Other responses

- `401` — Missing or invalid authentication token.
- `404` — Task or appointment does not exist (TASK_NOT_EXIST).
- `500` — Internal server error.

---

[API](https://skmtc.net/lofty/apis/lofty-service-open-apis.md) · [All operations](https://skmtc.net/lofty/apis/lofty-service-open-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lofty/lofty-service-open-apis/versions/23e640467118/schema)
