/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.


Last updated