> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeonbot.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Auto Delete

> Automatically delete bot messages in designated channels to keep your server clean.

The Auto Delete module (also known as **Antibot**) automatically deletes messages sent by **bots** in specific channels. This is ideal for keeping channels like general chat or media channels free from bot spam, command outputs, and unwanted automated messages.

<Note>
  **Required Permission:** [Server Owner](/permissions/hierarchy), [Extra Owners](/permissions/extra-owners), and [Admin Access](/permissions/admin-access) can manage autodelete.
</Note>

***

## How It Works

1. You designate specific channels where bot messages should be auto-deleted.
2. When any bot sends a message in those channels, ZEON immediately deletes it.
3. You can **whitelist** specific bots whose messages should be preserved (e.g., music bots, ZEON itself).

***

## Channel Management

| Command                       | Description                               |
| :---------------------------- | :---------------------------------------- |
| `.autodelete add #channel`    | Add a channel to the autodelete list      |
| `.autodelete remove #channel` | Remove a channel from the autodelete list |
| `.autodelete show`            | Display all autodelete channels           |
| `.autodelete reset`           | Clear all autodelete channels             |

<Tip>
  **Aliases:** You can also use `.antibot` or `.ab` instead of `.autodelete`.
</Tip>

***

## Bot Whitelist

If you have bots whose messages you want to **keep** in autodelete channels (e.g., a music bot displaying the current track), add them to the whitelist.

| Command                             | Description                     |
| :---------------------------------- | :------------------------------ |
| `.autodelete whitelist add @bot`    | Whitelist a bot from autodelete |
| `.autodelete whitelist remove @bot` | Remove a bot from the whitelist |
| `.autodelete whitelist show`        | Display all whitelisted bots    |
| `.autodelete whitelist reset`       | Clear the entire whitelist      |

<Warning>
  * Only **bots** can be added to the whitelist. Attempting to add a human user will be rejected.
  * Maximum of **10 autodelete channels** per server.
  * If a whitelisted bot leaves the server, it is automatically removed from the whitelist.
  * If an autodelete channel is deleted, it is automatically removed from the list.
</Warning>
