# /purge

### Description

This command allows you to delete a specified amount of messages

### Cheat Sheet

{% hint style="info" %}
`/purge !amount: channel:`

<mark style="color:red;">**Note:**</mark>**&#x20;Any parameter prefixed with&#x20;**<mark style="color:red;">**!**</mark>**&#x20;is required, the others are optional.**
{% endhint %}

**Permissions**

* Administrator

### Parameters

Parameters are the options you can pass if you want extra input or custom behaviour.

<table data-view="cards"><thead><tr><th>Parameter</th><th>Purpose</th><th>Options</th></tr></thead><tbody><tr><td><mark style="color:green;background-color:green;"><code>Amount</code></mark></td><td>The amount of messages to delete in the channel</td><td><code>&#x3C;any></code></td></tr><tr><td><mark style="color:green;background-color:green;"><code>Channel</code></mark></td><td>The channel to delete messages in</td><td><code>&#x3C;any></code></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.elyxir.dev/commands/miscellaneous/purge.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
