Moderation · Message cleanup
/purge
Delete recent messages, optionally only ones matching a filter.
Default
Without an action, ,purge does its main job: delete recent messages, optionally only ones matching a filter.
,purge <amount>/purge amount:50
Options
These are the boxes Discord shows when you type /purge. With the prefix, type them in order after the command.
membermemberoptionalFor user: whose messages to delete.
message_idIDoptionalFor after, before, upto and between: the message ID to start from.
end_idIDoptionalFor between: the message ID to stop at.
amountnumberoptionalHow many messages to delete (default 50, max 1000).
texttextoptionalFor startswith, endswith and contains: the text to match.
Actions
Pick one with the action option on /purge, or type it straight after the command, like ,purge activity.
| Action | What it does |
|---|---|
activity | Delete system messages like joins, pins and boosts. |
after | Delete messages sent after a message. |
attachments | Delete messages with attachments. |
before | Delete messages sent before a message. |
between | Delete messages between two messages. |
bots | Delete messages sent by bots. |
commands | Delete bot replies and command messages. |
contains | Delete messages containing some text. |
embeds | Delete messages with embeds. |
emoji | Delete messages containing emoji. |
emotes | Delete messages containing custom emotes. |
endswith | Delete messages that end with some text. |
humans | Delete messages sent by people, not bots. |
images | Delete messages with images. |
invites | Delete messages with server invites. |
links | Delete messages containing links. |
mentions | Delete messages that mention users or roles. |
startswith | Delete messages that start with some text. |
stickers | Delete messages with stickers. |
upto | Delete everything from now back to a message. |
user | Delete messages from one member. |
webhooks | Delete messages sent by webhooks. |
purge activity
Delete system messages like joins, pins and boosts.
,purge activity [amount]# the short way
/purge action:activity
# with every option filled in
/purge action:activity amount:50
purge after
Delete messages sent after a message.
,purge after <message id> [amount]# the short way
/purge action:after message_id:1290012345678901234
# with every option filled in
/purge action:after message_id:1290012345678901234 amount:50
purge attachments
Delete messages with attachments.
,purge attachments [amount]# the short way
/purge action:attachments
# with every option filled in
/purge action:attachments amount:50
purge before
Delete messages sent before a message.
,purge before <message id> [amount]# the short way
/purge action:before message_id:1290012345678901234
# with every option filled in
/purge action:before message_id:1290012345678901234 amount:50
purge between
Delete messages between two messages.
,purge between <start id> <end id> [amount]# the short way
/purge action:between message_id:1290012345678901234 end_id:1290019876543210987
# with every option filled in
/purge action:between message_id:1290012345678901234 end_id:1290019876543210987 amount:50
purge bots
Delete messages sent by bots.
,purge bots [amount]# the short way
/purge action:bots
# with every option filled in
/purge action:bots amount:50
purge commands
Delete bot replies and command messages.
,purge commands [amount]# the short way
/purge action:commands
# with every option filled in
/purge action:commands amount:50
purge contains
Delete messages containing some text.
,purge contains <text>/purge action:contains text:be nice and have fun
purge embeds
Delete messages with embeds.
,purge embeds [amount]# the short way
/purge action:embeds
# with every option filled in
/purge action:embeds amount:50
purge emoji
Delete messages containing emoji.
,purge emoji [amount]# the short way
/purge action:emoji
# with every option filled in
/purge action:emoji amount:50
purge emotes
Delete messages containing custom emotes.
,purge emotes [amount]# the short way
/purge action:emotes
# with every option filled in
/purge action:emotes amount:50
purge endswith
Delete messages that end with some text.
,purge endswith <text>/purge action:endswith text:discord.gg
purge humans
Delete messages sent by people, not bots.
,purge humans [amount]# the short way
/purge action:humans
# with every option filled in
/purge action:humans amount:50
purge images
Delete messages with images.
,purge images [amount]# the short way
/purge action:images
# with every option filled in
/purge action:images amount:50
purge invites
Delete messages with server invites.
,purge invites [amount]# the short way
/purge action:invites
# with every option filled in
/purge action:invites amount:50
purge links
Delete messages containing links.
,purge links [amount]# the short way
/purge action:links
# with every option filled in
/purge action:links amount:50
purge mentions
Delete messages that mention users or roles.
,purge mentions [amount]# the short way
/purge action:mentions
# with every option filled in
/purge action:mentions amount:50
purge startswith
Delete messages that start with some text.
,purge startswith <text>/purge action:startswith text:!buy
purge stickers
Delete messages with stickers.
,purge stickers [amount]# the short way
/purge action:stickers
# with every option filled in
/purge action:stickers amount:50
purge upto
Delete everything from now back to a message.
,purge upto <message id> [amount]# the short way
/purge action:upto message_id:1290012345678901234
# with every option filled in
/purge action:upto message_id:1290012345678901234 amount:50
purge user
Delete messages from one member.
,purge user <member> [amount]# the short way
/purge action:user member:@alex
# with every option filled in
/purge action:user member:@alex amount:50
purge webhooks
Delete messages sent by webhooks.
,purge webhooks [amount]# the short way
/purge action:webhooks
# with every option filled in
/purge action:webhooks amount:50