---
title: "Delete a comment and its replies"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a comment and its replies

Path: CloudRaker Paperwork API › Redline

`DELETE /v1/redline/{sessionId}/comments/{commentId}`

Removes a comment thread from the document entirely. To keep it but mark it handled, [resolve](https://docs.cloudraker.com/paperwork/api/redline/resolve-redline-comment) it instead.

**Learn more:** [Redlining](https://docs.cloudraker.com/paperwork/developers/file-tools)

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `sessionId` (`deleteRedlineComment.path.sessionId`; string, required)
  - minLength 1
- `commentId` (`deleteRedlineComment.path.commentId`; string, required)
  - minLength 1

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.cloudraker.com/v1/redline/<sessionId>/comments/<commentId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/redline/<sessionId>/comments/<commentId>';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/v1/redline/<sessionId>/comments/<commentId>"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 200

The new revision.

#### Example

```json
{
  "revision": -9007199254740991,
  "result": {
    "commentId": "c2",
    "resolved": true
  },
  "summary": {
    "paragraphCount": -9007199254740991,
    "comments": -9007199254740991,
    "trackedChanges": -9007199254740991
  }
}
```

- `revision` (`deleteRedlineComment.response.200.revision`; integer, required)
  - min -9007199254740991; max 9007199254740991
- `result` (`deleteRedlineComment.response.200.result`; object, required)
  - `commentId` (`deleteRedlineComment.response.200.result.commentId`; string, required)
    - example `"c2"`
  - `resolved` (`deleteRedlineComment.response.200.result.resolved`; boolean, optional)
- `summary` (`deleteRedlineComment.response.200.summary`; object, required)
  - `paragraphCount` (`deleteRedlineComment.response.200.summary.paragraphCount`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `comments` (`deleteRedlineComment.response.200.summary.comments`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `trackedChanges` (`deleteRedlineComment.response.200.summary.trackedChanges`; integer, required)
    - min -9007199254740991; max 9007199254740991

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`deleteRedlineComment.response.400.success`; boolean, required)
  - one of `false`
- `error` (`deleteRedlineComment.response.400.error`; array<unknown>, required)
- `data` (`deleteRedlineComment.response.400.data`; unknown, required)

### 404

Unknown session or comment.

### 429

Rate limited. The `/v1` API allows at least **67 requests per minute per organization** (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the `Retry-After` interval and retry — the error is `retryable`.

#### Example

```json
{
  "code": "rate_limited",
  "message": "string",
  "retryable": true,
  "requestId": "string",
  "docUrl": "string"
}
```

- `code` (`deleteRedlineComment.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`deleteRedlineComment.response.429.message`; string, required)
- `retryable` (`deleteRedlineComment.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`deleteRedlineComment.response.429.requestId`; string, required)
- `docUrl` (`deleteRedlineComment.response.429.docUrl`; string, optional)


Source: https://docs.cloudraker.com/paperwork/api/redline/delete-redline-comment/index.md
