# Delete a comment

`DELETE https://api.cademi.com.br/api/v3/products/{product_id}/comments/{comment_id}`

Operation ID: `comments.delete` · API v3

Deletes a top-level comment together with all of its replies.

To remove a single reply while keeping the rest of the conversation, use the delete reply operation.

Required permissions: `comments.delete`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | path | string | yes |  |
| `comment_id` | path | string | yes |  |

## Responses

### 204

The comment and its replies were deleted successfully.

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The comment was not found in this product or is not accessible with the current credentials.

Body: Error.

Full schema: https://cademi.dev/openapi/v3.json
