Deleting a message on Discord is as simple as hovering over the message, opening the menu, and selecting Delete. But to delete multiple messages or auto-delete them, try Discord bots (Discord now calls them apps). Here are two Discord bots/apps to delete multiple messages with a single command and one neat trick to delete all messages.
Table of Contents
Things to Note
- Bots cannot delete your Direct Messages as it violates Discord terms. You can only use them to delete messages on the Discord servers.
- To delete messages on a server, you either must be an admin of that server or your role must have permission to manage the server and messages.
- Bots access your message history to delete them on your behalf which may raise privacy concerns.
- Due to Discord API limitations, these bots cannot delete messages older than 14 days. Nor can they delete more than 100 messages in one go. But again, there is a workaround we will discuss shortly.
Before we proceed, if you are wondering how to add bots to the Discord server, check out this detailed guide.
1. Cleaner
You can use Cleaner to delete a specific number of messages from a particular user. Here are all the commands and respective features supported by the Cleaner bot.
Command | Feature |
---|---|
/clean messages [1-50] | Deletes specified number of messages from last message |
/clean user [user] | Deletes messages of a specific user in the channel |
/clean bot | Deletes all the bot messages in the channel |
/clean mass delete [user] | Deletes messages of a specified user across the server |
Apart from that, you can also add words you don’t want on your server like abuse or adult-related, and the bot will automatically delete all messages that include the listed words.
Command | Feature |
---|---|
/badwords add [word] | Let’s you add bad words to the list |
/badwords delete [word] | Removes the bad word from the list |
/badwords list | Display a list of bad words you created |
Add Cleaner to your Discord server
2. EazyAutodelete
Cleaner can automatically delete messages with bad words but does not provide enough options to auto-delete messages. If you want to control how messages are auto-deleted, use EazyAutodelete.
After installation, type /setup in the channel you want to delete messages and select the EazyAutodelete option.
The bot will reply with a message in which you can select the delete mode and type of messages to delete. You have three delete modes to choose from.
- Delete each message after a specific time
- Delete all the messages after a specific time interval
- Delete all messages after a specific number of messages
You can also customize the type of message that has to be auto-deleted.
For example, you can set it to auto-delete messages from bots and include images or links. Messages that do not match the filter or criteria will not be deleted.
Once you have customized the bot and set up filters, close and open the Discord channel. It will delete messages automatically according to the applied settings.
For a simpler auto-delete feature where you want to delete messages after a specific time, try Auto-Delete Beta bot.
Add EazyAutodelete to your Discord server
What About Deleting All the Messages on the Channel
Again, because of Discord’s API limitations, bots cannot delete all the messages on your channel. But we found a workaround that makes it easy.
Open your Discord server and right-click on the channel you want to delete messages from.
Select the Duplicate channel option and create a new channel. This channel will have the same name, members, and permissions, but not the messages.
Now delete the old channel using the same right-click menu. You know what you just did, right? You have another channel with everything similar to the original channel but without all the messages.
However, remember that doing so will change the channel’s link.
There are Discord bots that use the same trick to delete messages. They duplicate the channel and delete the original. We recommend doing it manually instead of installing another bot.