> Full Clanzy docs index (for AI agents): https://clanzy.app/en/llms.txt · HTML page: https://clanzy.app/en/docs/commands/purge

# /purge

Clanzy's /purge command: Delete many messages. Syntax, who can use it, bot permissions, examples and common errors.

Delete many messages in this channel. Up to 100 messages at a time. Discord can't bulk-delete messages older than 14 days. Logged in the mod log when logs are on.

## Syntax

```
/purge count:<count> user:<user>
```

Type `/` in a server channel, pick the command from the list and fill in the fields Discord shows.

## Options

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `count` | integer | Yes | How many recent messages (1-100) (1–100) |
| `user` | member | No | Only this member's messages |

## Who can use it

- **Members:** Mods with Manage Messages. Discord hides the command from members without it.
- **Clanzy needs:** Manage Messages, Read Message History.
- **Feature:** [Moderation](https://clanzy.app/en/docs/moderation)

See [permissions and who can use what](https://clanzy.app/en/docs/getting-started/permissions) to change who sees commands in Discord.

## Examples

| You type | Clanzy does |
| --- | --- |
| `/purge count:50 user:@Spammer` | 🧹 Deletes Spammer's messages among the channel's last 50. Leave out user to delete them all. |

## In the dashboard

The related settings are in the [dashboard](https://app.clanzy.app/?open=moderation): pick your server and the section opens.

## Errors you may see

| Clanzy says | What it means and the fix |
| --- | --- |
| You need the **Ban Members** permission to use this command. | This command needs its own permission: Kick Members for /kick, Ban Members for /ban and /unban, Manage Messages for /purge. Ask an admin to grant it to your role. [More](https://clanzy.app/en/docs/moderation) |
| Nothing to delete (Discord only bulk-deletes messages younger than 14 days). | Discord only bulk-deletes messages younger than 14 days, up to 100 at a time. Delete older ones by hand. |
| Clanzy is missing **Ban Members**. Ask an admin to grant it in the dashboard (Moderation). | Clanzy was added before moderation existed, so it lacks the permission. Open Moderation in the dashboard and re-authorize the bot. [More](https://clanzy.app/en/docs/troubleshooting/missing-permissions) |

## Related commands

- [`/ban`](https://clanzy.app/en/docs/commands/ban): Ban someone from the server
- [`/timeout`](https://clanzy.app/en/docs/commands/timeout): Time a member out
- All commands: [command list](https://clanzy.app/en/docs/commands)

Updated: 2026-11-20
