/clear
Delete a number of recent messages from the current channel. Optionally filter to remove messages and bot messages included.
π¬ Usage
/clear <amount> <bots (yes/no)>
<amount>
β The number of messages to delete (e.g.10
,50
,100
)<bots>
β Chooseyes
to delete messages and bot messages, orno
to delete all messages that excludes bot messages
π§Ή Use this to clean up clutter, remove spam, or reset a channel quickly.
π Example
/clear 25 no
This will:
Delete the last 25 messages in the current channel except for bot messages.
/clear 10 yes
This will:
Delete the last ten messages including from bots.
ποΈ Notes
You must have the Manage Messages permission to use this command.
Message deletion is not selective β it deletes the most recent messages that match your criteria.
There may be a limit (typically 100) to how many messages can be deleted at once, depending on Discordβs API.
π Related Tools
Moderation Commands β For more cleanup and enforcement tools
Logging β To see whatβs being deleted
Last updated