# CommentDeleted Event

> Occurs when a comment has been deleted from the document; the CommentId parameter passes the Long identifier of the comment that was deleted.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Event
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > CommentDeleted Event
- **116 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentdeleted-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentdeleted-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentdeleted-event/llms-full.txt

---

Occurs when a comment has been deleted.

Introduced: 30.0.

### Syntax

```vbscript
CommentDeleted(CommentId)
```

### Parameters

| Parameter | Description |
|---|---|
| CommentId | Is the identifier of the deleted comment. |

### Data Types

| Name | Data type |
|---|---|
| CommentId | Long |

### See Also

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

---

## Nearby

- **Previous:** [CommentDelete Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentdelete-method/llms-full.txt)
- **Next:** [CommentEdit Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentedit-method/llms-full.txt)
