---
title: "Delete a comment"
method: DELETE
path: "/v1/comments/{commentId}"
tags: ["Comments"]
---

# Delete a comment

`DELETE /v1/comments/{commentId}`

Delete a comment in Comp AI. Create and manage collaboration comments on compliance entities such as tasks, policies, risks, vendors, and findings.

## Path parameters

- `commentId` string, required

## Request body

- object
  - `userId` string — User ID of the comment author (required for API key auth, ignored for JWT auth)

## Response `200`

Comment deleted successfully

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

## Other responses

- `401` — Unauthorized - Invalid authentication
- `404` — Comment not found

---

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