Back to blog

How to Use the Discord Purge Command

Dark Discord-style #general chat with a teal /purge limit 50 command chip and recent messages fading out

Discord does not ship a /purge command. There is no built-in bulk-delete button in the client. You delete one message at a time, or you add a bot that calls Discord’s bulk-delete API. BetterAntispam adds /purge (Administrator). Run it in the channel you want cleaned. Set limit from 1 to 1000, or leave it blank to wipe that channel. Messages under 14 days go in bulk. Older ones go one at a time. That 14-day rule is Discord’s, not the bot’s.

Editorial disclosure: This guide is published by BetterAntispam. We recommend BetterAntispam when you want a slash-command purge that also slow-deletes messages older than 14 days, plus /nuke, /snipe, and raid tools in the same stack. We name the cases where Dyno, Carl-bot, Wick, YAGPDB, MEE6, or ProBot already cover the cleanup you need. Limits come from Discord’s API and the bot’s source.

TL;DR: People searching discord purge command, discord /purge, how to purge discord messages, discord purge messages, and discord bulk delete want a command Discord never added. Invite BetterAntispam, stand in the channel, run /purge (Administrator). limit is 1–1000. Leave it off to wipe the current channel. The bot needs Manage Messages there. Discord’s endpoint accepts 2–100 IDs and refuses anything older than two weeks. BetterAntispam splits the job: fast bulk for the fresh ones, one-at-a-time for the rest. /nuke is the sister wipe. /snipe (Manage Messages) can restore a recent delete. Do not use a userscript on your account. Discord treats that as a self-bot.
Dark Discord-style #general chat with a teal /purge limit 50 command chip and recent messages fading out

How to run /purge

This is the first body section: the command, then Discord’s missing button.

  1. Add BetterAntispam. You need Manage Server to invite it. Do not strip Manage Messages or Read Message History on the invite screen. Discord’s permissions FAQ is the official page for role vs channel overrides.
  2. Run /setup once so a log channel exists. The transcript of what /purge deleted lands there. You cannot generate that file after the fact.
  3. Open the target channel. Type / and purge. Pick BetterAntispam’s /purge.
  4. You need Administrator. The bot also needs Manage Messages in that channel. If it does not, the reply is that it cannot delete.
  5. Set limit to a number from 1 to 1000, or skip the option to wipe the channel you are standing in.
  6. If the history is large or many messages are older than 14 days, the bot asks you to confirm. Cancel if you are in the wrong channel.

Examples:

  • /purge limit:50 — last 50 messages in this channel.
  • /purge limit:1000 — the option ceiling.
  • /purge — wipe this channel. Confirm if the bot prompts.

Docs: customer documentation. Support: Discord support server. There is no website login for this. Configuration stays in slash commands.

/purge is free. So are /nuke, /unnuke, /snipe, and the core of /autonuke settings.

Discord has no built-in purge command

Peakbot’s 2026 bulk-delete guide and Discord’s own API docs agree: the app does not expose a purge. A moderator with Manage Messages can delete someone else’s message one click at a time. That is the native tool.

The other native wipe is deleting the channel. That clears history of any age. It also gives the new channel a new ID. Webhooks, starboards, and ticket bots pointed at the old ID go silent. The longer write-up is How to Delete All Messages in a Discord Channel.

Browser userscripts that walk your account and delete your own history are not a Discord feature. Discord’s Terms treat automated user accounts as self-bots. Use a server bot, or click delete by hand.

The 14-day bulk-delete rule

Discord’s Bulk Delete Messages endpoint:

RuleWhat it means
Guild channels onlyNot DMs
Requires Manage MessagesThe bot, not just you
2–100 IDs per callA “purge 500” is several loops
Nothing older than 2 weeksError 50034 if you send a stale ID
Duplicates fail the requestThe whole batch is rejected

This is why every serious purge command looks the same after 14 days. Dyno’s purge docs say you cannot purge messages over 14 days old. YAGPDB’s /clean only looks at the last 1,000 messages and none older than two weeks.

BetterAntispam does not lift Discord’s cap. It partitions the pile. Fresh messages go through bulk delete. Older ones are deleted one at a time. That is slower. It is also the only honest way to clear a quiet channel whose last 80 messages span months.

/mute and /warn can delete at most 100 recent messages on the way out. /ban purge_days maxes at 7 days. Those are Discord’s numbers, not a plan gate.

Split illustration: a 14-day calendar with messages vanishing in one swipe, and an old message deleted slowly next to an hourglass

/purge vs /nuke vs cloning the channel

ToolWhat it doesPermissionWhen to use it
/purgeDeletes messages in the current channel. Optional limit 1–1000AdministratorSpam wave, raid leftovers, a bad night in #general
/nukeSame wipe family. Optional limit 1–1000AdministratorYou want the dedicated wipe command
Recycle / cloneDeletes the channel and makes a new oneBot needs Manage ChannelsOld history, and you checked webhooks first
/unnukeRolls back a nuke from the audit logAdministratorYou recycled the wrong channel
/snipeBrowse and restore recently deleted messagesManage MessagesYou purged too far. Free restore cap is 50
/autonuke settingsScheduled recurring purgeAdministratorFree: 1 channel, minimum interval 7 days

/purge without a limit can offer a recreate button when the bot has Manage Channels on that channel. Recreate is instant and ignores message age. It also changes the channel ID. Use it only after you have read the channel wipe guide. /unnuke (Administrator) is the undo for a recycle, not for an in-place purge.

A purge is cleanup. It is not antispam. If the flood is still arriving, run /antispam settings or /raidmode (both Administrator) first, then purge. Playbook: How to Stop a Discord Raid.

What /purge does not do

BetterAntispam’s /purge has one optional argument: limit. It does not filter by user, bots, links, embeds, or regex. If you need “delete only @spammer,” look at another bot’s filters, or /ban that member with purge_days (max 7).

It does not run in DMs. Text-based guild channels only.

It does not bypass Discord’s 14-day bulk rule. It only chooses the slower path for old messages.

It does not restore itself. Use /snipe (Manage Messages) while the delete is still in the snipe cache. Free bulk restore is 50.

It does not replace /lockdown (Administrator). Lock first if people are still posting.

Other bots’ purge commands

Keep the bot you already trained staff on. Link goes to their command page, not the homepage.

BotCommandDocumented ceilingHonest catch
BetterAntispam/purge, optional limit 1–10001000 when you set a number; blank wipes the channelAdministrator. Slow-deletes older than 14 days
Dyno /purge/purge any, /purge bots, filters1000Docs: cannot purge messages over 14 days old
Carl-bot purge!purge, !purge user, !purge botDefault 100 in their tableIgnores pinned messages
Wick purgew!purge with type filtersExample uses 1000Prefix command. Filters for bots, links, attachments
YAGPDB /clean/clean, aliases clear, clLast 1,000 scannedNone older than two weeks. Regex and user filters
MEE6 !clear!clear 1-1000 or !clear @user1000Dashboard module must be on
ProBot /clear/clear user/bots + countNot specified beyond the commandWelcome-image stack. Keep if that is already the bot

Do not run three purge bots in the same channel. One command staff remember is enough.

After you purge

Set /logging settings (Administrator) before the next cleanup. The purge log lists who ran it, the channel, how many went out in bulk, and how many were slow-deleted. The transcript file is the only full copy.

Check Discord’s Audit Log if a human deleted messages by hand. Server Settings → Audit Log, View Audit Log permission.

If you meant to slow the room, not empty it, use /slowmode (Manage Channels). Guide: How to Use Discord Slowmode.

Which Moderation Bot Should You Choose?

BetterAntispam if you want /purge and /nuke without a website, plus /antispam settings, /antiraid settings, /raidmode, and /lockdown in the same slash-command stack.

Wick if a compromised moderator deleting channels is the nightmare, and you will finish Wick’s setup. Use Wick purge when filters are the product.

Dyno if Dyno /purge already lives on the dashboard and staff know the filter names. Remember the 14-day hard stop.

YAGPDB if staff already write custom commands and want /clean with regex.

Carl-bot if reaction roles are the product and Carl’s purge already owns cleanup.

MEE6 if the server already pays for MEE6 Premium and will not move XP.

ProBot if welcome images and ProBot automod are already the stack.

Do not install three cleanup bots. One /purge staff trust is enough.

FAQ

Does Discord have a purge command?

No. Discord has no /purge and no Clear Channel button. A bot adds the command. BetterAntispam’s is /purge (Administrator).

How do I use the Discord purge command?

Invite BetterAntispam, open the channel, run /purge. Set limit from 1 to 1000, or leave it blank to wipe that channel. You need Administrator. The bot needs Manage Messages there.

Why did /purge skip old messages?

It did not skip them if you used BetterAntispam. Discord’s bulk-delete API refuses messages older than 14 days. The bot deletes those one at a time, which looks like it stalled. Dyno and YAGPDB stop at two weeks instead.

What permission do I need to purge Discord messages?

For BetterAntispam, Administrator. The bot needs Manage Messages (and Read Message History) in the channel. Inviting the bot needs Manage Server.

Can I purge only one user’s messages?

Not with BetterAntispam /purge. That command has limit only. Use another bot’s user filter, or /ban with purge_days (max 7) if you are removing the member.

How do I undo a Discord purge?

In-place deletes: /snipe (Manage Messages) while the cache still has them. Free restore cap is 50. Recycled channel: /unnuke (Administrator). There is no Discord “undelete all.”

Is /purge free?

Yes. /nuke, /unnuke, and /snipe are free. /autonuke settings is free for 1 channel with a 7-day minimum interval.

Will a purge stop a raid?

No. It cleans what already landed. Use /raidmode and /antiraid settings (Administrator) for the join flood, /antispam settings for the message flood, then /purge.

Final Verdict

The Discord purge command is a bot command. Discord never added one. Invite BetterAntispam, stand in the channel, run /purge (Administrator) with limit 1–1000 or leave it blank to wipe. Expect the 14-day bulk-delete wall. Keep Dyno or Carl if their filters are already muscle memory. Do not clone a channel until you have checked the webhooks. Do not run a userscript on your account.

— Adam

Add BetterAntispam

Sources

BetterAntispam on Nick LaunchesFeatured on ToolFameFeatured on Startup FameVerified on DANG!ToolpilotToolpilotFeatured on SaaSGrowFeatured on ShowMeBestAIFazierSubmit AI ToolsFeatured on Twelve ToolsFeatured on Wired BusinessFeatured on Findly.toolsListed on Turbo0Featured on SaaSFameFeatured on neeed.directoryFeatured on Dofollow.ToolsGood AI ToolsAI Agents DirectoryAura++SideProjectorsFoundrListShinyLaunchStartup FastNextGen ToolsFind-Us-HereDeepLaunchAcid ToolsStartupBaseNewToolUFindWhatsYourHoursOpenHuntsMarketingDBStartup InspireStarter BestTiny StartupsFeatured on aitoolfame.comFeatured on IndieHuntShinyLaunchLaunched on LaunchPandaFeatured on WhatsthebigdataFeatured on Yo.directoryAs seen on Launch Llama Newsletterbetterantispam.com Domain RatingVerified DR - Verified Domain Rating for betterantispam.comFeatured on ToolfioBetterAntispam | Firsto LaunchFeatured on DailyPingsFeatured on DanielLaunchesFeatured on ShipBoostFeatured on AgentWork.ToolsFeatured on SaaSCityFeatured on WayfindioFeatured on DodoDirectoryFeatured on TinyLaunchpadFeatured on ListMySaaSVerified on directreeFeatured on Submit HuntFeatured on VibeCodingListFeatured on NoonlaunchFeatured on LaunchItListed on MaidensailVerified on Endors — BetterAntispamMarked on IndieAscentListed on CurlShipListed on PublishYourSaaS