# Clean

{% hint style="warning" %}
Akira can only delete messages up to 14 days old, \
as per Discord's Terms of Service.
{% endhint %}

## Usage:

| Command   | Options             | Description                            |
| --------- | ------------------- | -------------------------------------- |
| `a.clean` | \<Filter> {channel} | Clears multiple messages using filters |

#### Filters

Filters may be used to only clear messages that meet the specified criteria.

| Filter          | Description                                    |
| --------------- | ---------------------------------------------- |
| `user <member>` | Deletes messages sent by the mentioned member. |
| `bots`          | Deletes messages sent by bots.                 |
| `akira`         | Deletes messages sent by akira.                |
| `me`            | Deletes messages sent by you.                  |

## Example:

<table><thead><tr><th width="356">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>a.clean user @Dark-LYNN</code></td><td>Clears all messages from @Dark-LYNN</td></tr><tr><td><code>a.clear akira #general</code></td><td>Clears all messages in #general from Akira</td></tr></tbody></table>

## Related Commands

{% content-ref url="/pages/QKdgb9FB7AyRl8B2qkED" %}
[Nuke](/akira/moderation/nuke.md)
{% endcontent-ref %}


---

# 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://documentation.lynnux.xyz/akira/moderation/clean.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.
