Purging
Bulk delete messages in a channel, with filters for links, invites, images and mentions.
Basic Purging
You can purge any amount of messages (up to 200) by typing /purge any <amount>. This deletes the specified number of messages as long as they are not older than 2 weeks and are not pinned.
Advanced Purge Filters
If you only want to purge specific messages that meet certain conditions you can use an advanced purge filter by typing /purge <type> <amount>. You can view a list of advanced filters below:
- Links (Any well-formatted URL/Link)
- Invites (Discord invite links)
- Images (Any messages that have an image/file attached)
- Mentions (Any messages that contain at least 1 user mention)
- Embeds (Any messages that contain an embed)
- Self (Any messages that were sent by Cakey Bot)
- Bots (Any messages that were sent by a bot)
- Components (Any messages that have buttons or selection dropdowns)
- User (Any messages that were sent by the specified user)
- Special Format:
/purge user <user id>
- Special Format:
- Until (Deletes every message between the command and the specified message ID)
- Special Format:
/purge until <message id>
- Special Format:
- Between (Deletes every message between the specified message IDs)
- Special Format:
/purge between <message id> <message id>
- Special Format:
Cakey Bot may purge fewer messages than the number you specify. This could be due to a few reasons: * There are not enough messages that meet the specified filter * Some messages may be older than 2 weeks within the specified amount * Some messages may be "pinned" within the specified amount
Related Commands
- /purge any Manage Messages
Delete a number of messages in the channel.
/purge any <amount> [reactions-only] - /purge between Manage Messages
Delete every message between the two given message IDs. (Includes the two given)
/purge between <first-message-id> <second-message-id> [reactions-only] - /purge bots Manage Messages
Delete messages sent by any bots in the channel.
/purge bots <amount> [reactions-only] - /purge components Manage Messages
Delete messages that contain components. (buttons/selects).
/purge components <amount> [reactions-only] - /purge embeds Manage Messages
Delete messages containing rich embeds in the channel.
/purge embeds <amount> [reactions-only] - /purge images Manage Messages
Delete a number of images in the channel.
/purge images <amount> [reactions-only] - /purge invites Manage Messages
Delete server invites posted in the channel.
/purge invites <amount> [reactions-only] - /purge links Manage Messages
Delete a number of links posted in the channel.
/purge links <amount> [reactions-only] - /purge mentions Manage Messages
Delete messages with mentions in the channel.
/purge mentions <amount> [reactions-only] - /purge self Manage Messages
Delete messages sent by Cakey Bot in the channel.
/purge self <amount> [reactions-only] - /purge until Manage Messages
Delete every message after the given message ID.
/purge until <message-id> [reactions-only] - /purge user Manage Messages
Delete messages sent by given user.
/purge user <user> <amount> [reactions-only]