---
title: "Delete a comment"
method: DELETE
path: "/projects/{projectId}/comment-threads/{threadId}/comments/{commentId}"
tags: ["Comments"]
---

# Delete a comment

`DELETE /projects/{projectId}/comment-threads/{threadId}/comments/{commentId}`

## Request

- Base URL: `https://app.flora.ai/api/v1`
- URL: `https://app.flora.ai/api/v1/projects/{projectId}/comment-threads/{threadId}/comments/{commentId}`
- Auth: HTTP bearer

Soft-deletes one live comment. The caller can delete their own comments, or a FLORA comment they posted. Thread managers can also delete FLORA comments, including ones posted before Flora stored an acting user. Deleting the last live comment resolves the thread and sets `thread_resolved` to true. Already-deleted comments, comments in another thread, and inaccessible projects return 404. Comments owned by someone else return `forbidden`. Mutating public API requests support an optional Idempotency-Key header for client retries; duplicate keys within two hours return idempotency_duplicate.

## Path parameters

- `projectId` string, required: Project identifier
- `threadId` string, required: Comment thread identifier
- `commentId` string, required: Comment identifier

## Response `200`

Comment deleted.

- object
  - `comment_id` string, required: Comment identifier
  - `deleted` true, required: Always true when the comment was deleted
  - `thread_resolved` boolean, required: True when deleting this comment left no live comments and resolved the thread

## Other responses

- `400`: 400
- `401`: 401
- `402`: 402
- `403`: 403
- `404`: 404
- `409`: 409
- `429`: 429
- `500`: 500
- `503`: 503

## Changes

- **2026-10-28** `a8351619f225`: 9 warning
  - added the new `not_configured` enum value to the `error/code` response property for the response status `400`
  - added the new `not_configured` enum value to the `error/code` response property for the response status `401`
  - added the new `not_configured` enum value to the `error/code` response property for the response status `402`
  - added the new `not_configured` enum value to the `error/code` response property for the response status `403`
  - …5 more
- **2026-10-16** `e54130373b10`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/florafauna-ai/apis/flora-ai-api/changes/projects/:projectId/comment-threads/:threadId/comments/:commentId/delete.md)

---

[API](https://skmtc.dev/florafauna-ai/apis/flora-ai-api.md) - [All operations](https://skmtc.dev/florafauna-ai/apis/flora-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/florafauna-ai/apis/flora-ai-api/revisions/87cfe2c4ac29?raw)
