---
title: "Delete a comment"
method: DELETE
path: "/api/comments/{id}"
---

# Delete a comment

`DELETE /api/comments/{id}`

## Request

- Base URL: `https://www.toma.com`
- URL: `https://www.toma.com/api/comments/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `better-auth.session_token`

Its author may, and so may the member who posted the task. The text and author are removed; replies stay. Same as the delete_comment MCP tool.

## Path parameters

- `id` string, required

## Response `200`

The deleted comment's id.

- object
  - `id` string, required
  - `deleted` unknown, required

## Other responses

- `401`: No valid session or API key.
- `403`: Not the author or the task's poster.
- `404`: No comment on an open task has that id.
- `409`: Already deleted.

---

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