---
title: "Commands for the comments plugin"
description: "Information on the commands provided with the comments plugin."
canonical_url: "https://www.tiny.cloud/docs/tinymce/latest/comments-commands-events-apis/"
md_url: "https://www.tiny.cloud/docs/tinymce/5/comments-commands-events-apis/index.md"
version: "5"
last_updated: "2024-04-09T09:35:32Z"
tokens: 172
---
Important This page documents TinyMCE 5. For new projects, Tiny recommends using the latest, most up-to-date version. [See TinyMCE 8 documentation](../../latest/comments-commands-events-apis/).
# Commands for the comments plugin

## Commands

The Comments plugin provides the following JavaScript commands.

| Command | Description |
| --- | --- |
| tc-delete-conversation-at-cursor | Attempts to delete the comment at the current cursor position. A confirmation dialog will be shown prior to deletion. |
| tc-try-delete-all-conversations | Attempts to delete all comments in the editor. A confirmation dialog will be shown prior to deletion. |

**Examples**

```js
tinymce.activeEditor.execCommand('tc-delete-conversation-at-cursor');
tinymce.activeEditor.execCommand('tc-try-delete-all-conversations');
```
