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
after aliases: since, upto, af. before aliases: b4, bf. between aliases: range, btw, rng.
Reactions
reaction, reacts, react, r.
Purging your own messages
Scheduled purges
Automatically clear a channel on a repeating interval — useful for spam channels, temporary event channels, or anywhere that shouldn’t accumulate history.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.