# CommentDelete Method

> Removes the comment with the given Long CommentId from the document; the method returns True when the comment could be removed, otherwise False.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > CommentDelete Method
- **144 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentdelete-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentdelete-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentdelete-method/llms-full.txt

---

This method removes a comment from the document.

Introduced: 30.0.

### Syntax

```vbscript
TXTextControl.CommentDelete CommentId
```

### Parameters

| Parameter | Description |
|---|---|
| CommentId | Specifies a comment identifier. |

### Return Value

The return value is True, if the comment could be removed. Otherwise, it is False.

### Data Types

| Name | Data type |
|---|---|
| CommentId | Long |
| Return value | Boolean |

### See Also

- [Programming Category: Commenting a document](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/comments/llms-full.txt)

---

## Nearby

- **Previous:** [CommentCreationTime Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentcreationtime-property/llms-full.txt)
- **Next:** [CommentDeleted Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentdeleted-event/llms-full.txt)
