Lumière Logomark
Lumière
Moderation

Message Purging

/purge — precise, filterable bulk message deletion.

Last updated on

/purge deletes messages in bulk, with filters so you can target exactly what you want instead of wiping an entire channel.

/purge amount target role type input logic preview transcript

Requires Manage Messages.

Options

  • amount — how many messages to delete, from 2 up to 500.
  • target — only delete messages from a specific user.
  • role — only delete messages from members who have a specific role.
  • type — what kind of messages to target (see the full filter list below).
  • input — for filters that need extra detail: message IDs for position-based filters, or text/regex for content filters.
  • logicMatch deletes what fits the filter; Inverse deletes everything except what fits the filter.
  • preview — run a dry run first to see what would be deleted, without actually deleting anything.
  • transcript — attach a .txt log of every deleted message to the result, useful for keeping a record.

Available filters (type)

FilterDeletes
Bot MessagesMessages sent by bots
User MessagesMessages sent by real users
Webhook MessagesMessages sent via webhooks
Text OnlyMessages with no attachments or embeds
Media OnlyMessages with attachments or embeds
EmbedsMessages containing embeds
AttachmentsMessages with file attachments
LinksMessages containing links
Discord InvitesMessages containing Discord invite links
MentionsMessages that mention someone
Has ReactionsMessages with reactions on them
EmojiMessages containing emoji
No RolesMessages from members with no roles
No AvatarMessages from members with a default (no custom) avatar
Inactive / Left ServerMessages from users no longer in the server
Deleted Discord AccountsMessages from since-deleted Discord accounts
Zalgo / Glitch TextMessages with corrupted/glitch-style text
Clear ReactionsRemoves reactions without deleting the message
Before Message IDEverything before a given message ID
After Message IDEverything after a given message ID
Between Two IDsEverything between two message IDs (ID1-ID2)
Contains TextMessages containing specific text
Matches ExactlyMessages that exactly match given text
Starts WithMessages starting with given text
Regex PatternMessages matching a regex pattern

A good habit: use preview first

Set preview: True before running a large or filter-heavy purge. Lumière will show you what it would delete without touching anything, so you can double-check before committing.

For scheduled, recurring cleanup instead of a one-time purge, see Auto-Purge.

On this page