Slash commandMessages & reporting
purge
Bulk-delete messages with filters, cross-channel targeting, and a safe test-run mode.
Usage
/purge [max_age] [max_messages] [from_author] [search_pattern] [between_msg_ids] [bot_or_user] [has_embed] [has_attachment] [in_channel] [all_channels] [test_run] [mode]<angle brackets> are required; [square brackets] are optional.
Arguments
Only messages newer than a duration such as 1w2h.
Maximum messages to delete, up to 1,000.
Only messages from this user.
Space-separated exact or wildcard content patterns.
Two message IDs defining a range.
Only bot messages or only user messages.
Choices:
UsersBotsRequire or exclude embeds.
Choices:
Has embedsDoes not have embedsRequire or exclude attachments.
Choices:
Has attachmentsDoes not have attachmentsTarget a different channel.
Search every channel in the server.
Default: false
Preview matches without deleting messages.
Default: false
Reliable finds everything; Fast may miss messages.
Default: Reliable
Choices:
ReliableFastExamples
Preview up to 100 recent messages from one user.
/purge from_author:@Member max_messages:100 test_run:trueDelete week-old matching messages across the server.
/purge max_age:1w search_pattern:"*spam*" all_channels:true