/clear
Delete recent messages in this channel.
Checks up to 100 recent messages and deletes the ones that match — all of them, only one member’s, only bots’, or only messages containing some text. Discord can’t bulk-delete messages older than 14 days, so those are skipped. Run it without a number to see how to use it.
How to use it
/clear amount:<amount> [user] [bots] [contains]<required> must be filled in; [optional] can be left out.
| Option | Type | What it does |
|---|---|---|
amount required | number | How many messages to check (1-100) |
user optional | member | Only delete messages from this member |
bots optional | true / false | Only delete messages from bots |
contains optional | text | Only delete messages containing this text |
Examples
/clear amount:50Delete the last 50 messages
/clear amount:100 user:@Leader OnlyDelete Leader Only’s messages among the last 100
/clear amount:100 contains:discord.ggDelete invite links
!clear 20Prefix version
What it looks like
Real replies from Apera. Use EN | ع on a picture to see it in the other language.
Good to know
- Needs Manage Messages.
- Deleting more than 20 messages with /clear asks Yes / Cancel first.
- Apera logs a transcript of what was deleted if bulk-delete logging is on.
Related
Guides that use this command
Related commands
/banBan a member, or anyone by user ID — even people who already left./unbanUnban a user by their ID./kickKick a member from the server./timeoutTimeout a member for a while — they can’t chat, react or talk./untimeoutEnd a member’s timeout early./muteMute a member with the Muted role until you unmute them.Was this page helpful?
Thanks for telling us!