Back to Blog

How to Bulk Delete or Purge Messages in a Discord Channel in 2026

Peak Team·June 19, 2026·8 min read
By the PeakBot Team — powering 500+ Discord communities
Key Takeaways
  • Discord's API only allows bots to delete messages in batches of up to 100 per call, and those messages must be under 14 days old.
  • This is the rule that trips up almost everyone.
  • For messages under 14 days old, the cleanest method uses a moderation bot already in your server.
  • The real power of a moderation bot is targeted purging.
  • You'll find browser-console scripts and "message cleaner" extensions that promise to delete your entire message history on Discord.
  • Sometimes you don't want to lose history at all, you just want the channel quieter or tidier.

How to Bulk Delete or Purge Messages in a Discord Channel in 2026

To bulk delete messages in a Discord channel, use a moderation bot's purge command (for example /purge 100) to remove up to 100 messages at once, but note Discord only lets bots bulk-delete messages newer than 14 days. For older messages or a full clear, clone-and-delete the channel instead.

Discord deliberately makes mass deletion slow. There's no native "select all and delete" button in the client, the API caps bulk operations, and anything older than two weeks is off-limits to bulk tools. That's frustrating when you're cleaning up spam or starting a channel fresh, but the limits exist for good reasons. This guide walks through exactly how to purge messages safely, what the 14-day rule blocks, and how to clear a channel without losing the parts you want to keep.

Why Discord limits how many messages you can delete at once

Discord's API only allows bots to delete messages in batches of up to 100 per call, and those messages must be under 14 days old. The standard /purge or !clear command you see in moderation bots is really a wrapper around this single API endpoint, called bulkDelete. When you ask a bot to purge 500 messages, it loops the endpoint several times behind the scenes.

These limits are intentional. Mass deletion is one of the most destructive actions on a server, and an unrestricted version would be a gift to attackers and rogue moderators. By capping batch size and age, Discord makes it much harder for a compromised account or a malicious bot to silently wipe months of history in seconds. The same logic underpins Discord's broader anti-abuse design, which we cover in our full guide to moderating a Discord server.

The practical takeaways:

  • A single purge command clears at most 100 messages.
  • To delete more, a bot has to run several batches, which takes a few seconds.
  • Anything older than 14 days cannot be bulk-deleted at all.

The 14-day rule and what it blocks

This is the rule that trips up almost everyone. Discord's bulk delete endpoint flatly refuses to touch any message older than 14 days. It's not a bot limitation you can configure away, it's enforced at the API level for every bot and tool on the platform.

So if you're trying to purge a channel that has months of backlog, a normal /purge 1000 will only catch the recent messages and silently skip the rest, or error out entirely. There is no supported "bulk delete everything ever" command.

You have three realistic options for old content:

  1. Delete messages one at a time. Slow, but it's the only built-in way to remove a specific old message. Hover, click the three dots, Delete.
  2. Use a bot that deletes old messages individually. Some moderation bots offer a "slow purge" mode that deletes old messages one by one via the single-message endpoint. This works but can take a long time and may hit rate limits on a busy channel.
  3. Clone and delete the channel (covered below). This is the fastest way to clear an entire channel's history regardless of age.

If your goal is simply a clean channel and you don't need to preserve recent messages, the clone-and-delete route is almost always the right call.

Step 1: Bulk-delete recent messages from inside the server

For messages under 14 days old, the cleanest method uses a moderation bot already in your server. Most of them expose a purge or clear command. With PeakBot, you'd run something like:

/purge 100

This removes the last 100 messages in the current channel. To go higher, run it again, or use a larger number if your bot supports looping (PeakBot batches the calls for you up to a sensible limit).

You need Manage Messages permission for this to work, and the bot needs it too. If the command fails silently, the missing permission is almost always the cause. Check the bot's role sits above the channel's permission overrides and has Manage Messages enabled.

A few safety habits before you fire a large purge:

  • Pin anything you want to keep first. Most purge commands have a "skip pinned" option; pinning rules, announcements, or key links protects them.
  • Double-check the channel. Purges are not reversible. Deleted messages are gone for good.
  • Tell your moderators. A sudden disappearance of hundreds of messages looks like a hack if nobody's expecting it.

Step 2: Purge by user, count, or keyword with a moderation bot

The real power of a moderation bot is targeted purging. Instead of nuking everything, you can remove only what you actually want gone. Common filters include:

  • By count: /purge 50 deletes the last 50 messages.
  • By user: /purge user @spammer 100 checks the last 100 messages and deletes only that user's. Ideal after a raid or a single bad actor.
  • By keyword or content: delete messages containing a specific phrase, link, or invite.
  • By bots: clear only bot messages, leaving human conversation intact.
  • By embeds or attachments: strip out only messages with images or files.

This selective approach matters because blanket deletion destroys context. If one user spammed a link 30 times across an otherwise normal conversation, you want to remove their 30 messages, not the whole discussion. Filtered purges let you do exactly that.

PeakBot handles all of these filters as part of its free moderation toolkit, alongside context-aware AI moderation that reads message intent and catches a lot of the spam before you ever need to purge it manually. For a deeper walkthrough of structuring your whole moderation setup, our ultimate guide to Discord server moderation in 2026 covers commands, roles, and automation together.

Step 3: Avoid browser scripts and self-bots

You'll find browser-console scripts and "message cleaner" extensions that promise to delete your entire message history on Discord. Avoid them. Tools that automate your own user account, rather than a proper bot, are self-bots, and self-botting violates Discord's Terms of Service. Accounts caught doing it can be disabled.

Beyond the rules, these scripts are genuinely risky:

  • They run with your full account permissions, so a buggy or malicious script can do far more than delete messages.
  • Pasting code into your browser console is a classic account-takeover attack. Discord even warns you about it in the developer console.
  • They hammer the API and routinely get rate-limited or trigger anti-abuse flags on your account.

The supported path is always a real bot using the official API with the permissions you grant it. A proper moderation bot is safer, faster to set up, and won't put your account at risk. If you want to harden the server against the kind of attacks these scripts resemble, set up anti-raid and anti-nuke protection so a single compromised account can't mass-delete or mass-ban.

Step 4: Clean a channel without nuking its history

Sometimes you don't want to lose history at all, you just want the channel quieter or tidier. A few non-destructive alternatives:

  • Archive instead of delete. Move the channel into an "Archive" category and lock it (deny Send Messages for @everyone). History stays readable, the channel stops collecting new messages.
  • Use threads for cleanup. Move off-topic chatter into a thread rather than deleting it. The main channel stays clean, the conversation isn't destroyed.
  • Restrict who can post. If a channel keeps filling with noise, change permissions so only certain roles can send messages. Often this removes the need to purge at all.
  • Lean on automod. Most "we need to purge this channel" moments come from spam that automod could have blocked at the source. Tuning your AutoMod settings is the long-term fix.

The goal is to delete because you've decided the content should be gone, not because cleanup is the only tool you reached for.

Step 5: Clear an entire channel the safe way (clone and delete)

When you genuinely want a completely fresh channel, regardless of the 14-day rule, the cleanest method is clone and delete. You can do this entirely in the native Discord client, no bot required:

  1. Right-click the channel and choose Clone Channel (or open Edit Channel and duplicate it).
  2. The clone copies the name, permissions, topic, and category, but none of the messages.
  3. Delete the original channel.
  4. Drag the clone into the correct position.

The result is an identical channel with zero history, in seconds, and it sidesteps the age limit entirely because you're not bulk-deleting messages at all, you're replacing the channel. This is the method most experienced server owners use for a true reset, since it's faster than any purge command and never gets blocked by the 14-day rule.

The one tradeoff: the channel gets a new internal ID, so any saved links pointing directly to old messages will break. For a general channel that's irrelevant; for something like a rules channel referenced elsewhere, repin and relink after cloning.

Which method should you use?

  • Removing recent spam or a single user's mess: filtered /purge with a moderation bot.
  • Clearing messages older than 14 days: clone and delete the channel.
  • Wiping a channel completely for a fresh start: clone and delete.
  • Tidying without losing history: archive, lock, or move to threads.
  • Stopping the mess from happening again: AI moderation and automod.

A capable bot covers most of these in one place. PeakBot is a free, AI-powered Discord bot that includes filtered purge commands, context-aware AI moderation, full logging, and anti-raid protection at no cost, with 30+ features free and no trial period. It's built to replace MEE6, Carl-bot, Dyno, and TidyCord with a single bot, and it's already powering 500+ Discord communities. See everything included on the best free Discord bot overview.

Frequently asked questions

How do I delete more than 100 messages in a Discord channel?

Run your bot's purge command multiple times, or use a bot that loops the request for you, since Discord caps each bulk-delete call at 100 messages. To clear an entire channel at once regardless of count, clone the channel and delete the original, which removes all history instantly.

Can I bulk delete messages older than 14 days?

No. Discord's bulk-delete endpoint refuses any message older than 14 days, for every bot and tool on the platform. Your only options for old messages are deleting them one at a time, a bot's slow single-message purge mode, or cloning and deleting the channel to wipe its history entirely.

Is it against the rules to use a script to delete my Discord messages?

Yes, if the script automates your own user account. That's called self-botting and it violates Discord's Terms of Service, with account suspension as a possible penalty. Browser-console scripts are also a common account-takeover vector. Use a proper moderation bot with the official API instead.

Will purging messages notify members or moderators?

No, deleted messages simply disappear with no announcement to members. If you have a logging bot enabled, the bulk delete will be recorded in your moderation log channel so your team has a record of what was cleared and by whom, which is worth setting up before any large purge.

What's the safest way to completely clear a Discord channel?

Clone the channel and delete the original. The clone keeps the name, permissions, and category but copies no messages, so you get an identical empty channel in seconds without hitting the 14-day limit. It's faster and safer than purging thousands of messages one batch at a time.

Try PeakBot free on your server

Setup takes 30 seconds.

Free forever · Setup in 30 seconds

Ready to level up your server?

30+ features included free. Moderation, welcome messages, XP & leveling, tickets, reaction roles, and more.

See All Features