> For the complete documentation index, see [llms.txt](https://autotask.gitbook.io/autotask/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://autotask.gitbook.io/autotask/slash-commands/clear.md).

# Clear

Clear a certain amount of messages in a specific channel

After a spam in a channel or something you want to delete, just use the <mark style="color:blue;">/clear</mark> command! It will delete a certain amount of messages that are less than 14 days old.

<figure><img src="https://289381920-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjiwciuVNSn2MRHfC4lPp%2Fuploads%2FzkDwHKqak3yQ3xbS135A%2Fclear-img.png?alt=media&amp;token=1cc7e82b-e840-43c8-b0f4-1573307e074d" alt=""><figcaption></figcaption></figure>

It is super easy to use! Just type <mark style="color:blue;">/clear</mark> and fill *<mark style="color:blue;">number</mark>* with the amount of messages that you want to delete (*<mark style="color:blue;">number</mark>* must be between 1 and 99).

{% hint style="info" %}
If you want to clear more than 99 messages, use the command multiple times :)
{% endhint %}
