/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>β Choose yes to delete messages and bot messages, or no 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