How Do I Delete All Messages in a Discord Server?


Angela Bailey

How Do I Delete All Messages in a Discord Server?

If you’re a Discord server owner or administrator, there may come a time when you need to clear out all the messages in a channel. Whether it’s for a fresh start or to remove unwanted content, Discord provides a straightforward way to delete all messages.


Before diving into the steps, make sure you have the necessary permissions to manage channels and messages. Only server owners and users with the “Manage Messages” permission can delete all messages in a channel.

Step 1: Open the Channel Settings

To begin, navigate to the channel where you want to delete all messages. Right-click on the channel name in the left sidebar and select “Channel Settings.”

Channel Settings
Right-click on the channel name and select Channel Settings

Step 2: Access Channel Permissions

In the Channel Settings menu, click on the “Permissions” tab located on the left-hand side.

Channel Permissions
Select Permissions from the Channel Settings menu

Step 3: Enable Manage Messages Permission

In the Permissions tab, locate your role or user profile under “Roles/Members.” Scroll down until you find “Manage Messages” and enable it by ticking the checkbox next to it.

Manage Messages Permission
Enable Manage Messages permission for your role/user profile


  • If you’re a server owner, you automatically have all permissions, including “Manage Messages.”
  • If you’re an administrator, check if the server owner has granted you the necessary permissions.

Step 4: Return to the Channel

After enabling the “Manage Messages” permission, close the Channel Settings menu by clicking on the “X” icon in the top-right corner. Return to the channel where you want to delete all messages.

Step 5: Open Developer Tools

To delete all messages efficiently, we’ll make use of Discord’s Developer Tools. To access them, press Ctrl + Shift + I (or Command + Option + I on a Mac) on your keyboard while in Discord.

Developer Tools
Open Developer Tools with keyboard shortcut Ctrl + Shift + I (or Command + Option + I)

Step 6: Navigate to Console Tab

In the Developer Tools window, you’ll find multiple tabs at the top. Click on the “Console” tab to switch to it.

Console Tab
Select Console tab in Developer Tools

Step 7: Run Deletion Script

In the console area, you can enter commands and scripts. Copy and paste the following script:

// Warning: This will irreversibly delete all messages in this channel
const channel = DiscordAPI.currentChannel;
channel.fetchMessages().then(messages => {

Note: Make sure to replace DiscordAPI.currentChannel with the appropriate channel identifier. For example, if you’re deleting messages in a text channel named “general,” use DiscordAPI.channels.get('channel_id').

Step 8: Execute the Script

Press the Enter key on your keyboard to execute the script. Discord will begin deleting all messages in the channel.

Delete Messages Script
Paste and execute the deletion script in the console


  • This process may take some time, depending on the number of messages in the channel.
  • Deleted messages cannot be recovered, so ensure you’ve selected the correct channel and have taken any necessary backups before proceeding.


You’ve successfully deleted all messages in a Discord server channel. Remember to exercise caution when using this method, as it permanently removes all messages without any option for recovery.

We hope this tutorial was helpful to you. If you have any further questions or need assistance, feel free to reach out to our support team.

Discord Server - Web Server - Private Server - DNS Server - Object-Oriented Programming - Scripting - Data Types - Data Structures

Privacy Policy