/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