Apera DocsBeta

/clear

Delete recent messages in this channel.

Needs Manage Messages Also !clear Guide: Moderation commands Open in dashboard

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.

OptionTypeWhat it does
amount requirednumberHow many messages to check (1-100)
user optionalmemberOnly delete messages from this member
bots optionaltrue / falseOnly delete messages from bots
contains optionaltextOnly delete messages containing this text

Examples

/clear amount:50

Delete the last 50 messages

/clear amount:100 user:@Leader Only

Delete Leader Only’s messages among the last 100

/clear amount:100 contains:discord.gg

Delete invite links

!clear 20

Prefix version

What it looks like

Real replies from Apera. Use EN | ع on a picture to see it in the other language.

Good to know

Guides that use this command

Related commands