Skip to main content
purge deletes recent messages. On its own it takes an amount; with a subcommand it filters by almost anything you’d want. Requires Manage Messages. Aliases: clear, rm, c.
Discord will not let any bot bulk-delete messages older than 14 days. Purge skips those rather than failing, so a purge of 100 in a quiet channel may delete fewer than 100 messages.

By author type

cleanup (aliases botclear, clean, bc) is the one you want most often — it removes bot messages and messages that look like commands to other bots, which clears the aftermath of a bot-spam session in one go.

By content

All content matching is case-insensitive.

By attachment type

By position

These take message IDs or links, and cap at 300 messages. after aliases: since, upto, af. before aliases: b4, bf. between aliases: range, btw, rng.
Right-click a message → Copy Message Link, and paste that. You don’t need the raw ID.

Reactions

Strips every reaction from the last N messages without deleting the messages themselves. Aliases: reaction, reacts, react, r.

Purging your own messages

To let a role purge messages generally without giving them Manage Messages:
Requires Manage Roles and Manage Messages to configure.

Scheduled purges

Automatically clear a channel on a repeating interval — useful for spam channels, temporary event channels, or anywhere that shouldn’t accumulate history.
Requires Manage Messages and Manage Channels. Aliases for add: schedule, create, timer.
For a channel you’d rather wipe completely than trim, !nuke clones it and deletes the original — instant, no 14-day limit, but it loses all history and the channel gets a new ID. Scheduled nukes are covered on the Channels page.

Command reference

Every command requires Manage Messages unless noted.