Bulk delete your own Discord messages from channels, DMs, or entire servers.
Discord doesn't let you mass-delete messagesβDetcord does. Filter by date, content, links, or regex. Pause and resume large operations. 100% browser-based, no data leaves your machine.
- Install Tampermonkey (or another userscript manager)
- Click here to install Detcord
- Open Discord in your browser
- Click the Detcord button β Select target β Delete
This project is independent and is NOT affiliated with, endorsed by, or connected to Discord Inc.
Discord may change their API at any time, which could break this tool without notice.
This software is provided AS-IS without warranty. Use at your own risk.
We have made security a priority, but we cannot guarantee the safety of your data.
Only YOUR OWN messages can be deleted. This is a Discord API limitation.
Detcord is a browser userscript that allows you to bulk delete your own Discord message history. Discord does not provide native bulk deletion functionality, requiring users to delete messages one at a time. This tool automates that process while respecting Discord's rate limits.
- Bulk delete your own messages from any channel, DM, or entire server
- Flexible filtering by date range, text content, attachments, links, and regex patterns
- Resume capability for large deletion operations
- Rate limit aware with adaptive delays to avoid API throttling
- Privacy-focused - all operations run locally in your browser
- Real-time progress tracking with estimated time remaining
- Pause/Resume/Stop controls for deletion operations
| Detcord | Other Tools | |
|---|---|---|
| TypeScript codebase | β | β |
| Tested (80%+ coverage) | β | β |
| Security documentation | β | β |
| Modular architecture | β | β |
| Modern tooling (Vite, Biome) | β | β |
| Active maintenance | β | Varies |
You need a userscript manager browser extension installed:
- Tampermonkey (Recommended - Chrome, Firefox, Edge, Safari, Opera)
- Violentmonkey (Chrome, Firefox, Edge)
- Greasemonkey (Firefox)
- Install one of the userscript managers listed above
- Click here to install Detcord
- Your userscript manager will prompt you to install - click "Install"
- Navigate to Discord in your browser
- A floating Detcord button will appear - click it to open the control panel
- Open Discord in your web browser (not the desktop app)
- Navigate to the channel or DM you want to clean up
- Click the Detcord button in the toolbar to open the control panel
Choose what you want to delete messages from:
- Current Channel - Delete messages from the channel you're viewing
- Current DM - Delete messages from the direct message conversation
- Entire Server - Delete your messages across all channels in a server
Narrow down which messages to delete:
| Filter | Description |
|---|---|
| After Date | Only delete messages sent after this date |
| Before Date | Only delete messages sent before this date |
| Contains | Only delete messages containing specific text |
| Has Links | Only delete messages with URLs |
| Has Files | Only delete messages with attachments |
| Include Pinned | Include pinned messages (off by default) |
| Regex Pattern | Advanced filtering with regular expressions |
- Preview - Detcord will scan and count matching messages
- Confirm - Review the count before proceeding
- Delete - Click "Start Deletion" to begin
- Monitor - Watch real-time progress, pause/resume as needed
- Pause - Temporarily halt deletion (can resume later)
- Resume - Continue a paused deletion
- Stop - Cancel the operation entirely
We have worked hard to make Detcord secure, but we offer no guarantees. The tool:
- Never stores your authentication token
- Never transmits data to any third parties
- Only operates on your own messages
- Runs entirely in your browser
See our Security Policy for more details.
No. Discord's API only allows users to delete their own messages. This is a platform limitation, not a limitation of Detcord.
Discord enforces strict rate limits on their API (approximately 5 deletions per second). Detcord respects these limits to avoid getting your account flagged. Large deletion operations may take hours.
No. Detcord is a userscript that only works in web browsers. You must use Discord at discord.com/app in a browser with a userscript manager installed.
The deletion will stop. When you return and reopen Detcord, you can start a new deletion operation. Previously deleted messages will not be re-processed.
While Detcord makes standard API requests that look like normal Discord usage, we cannot guarantee that Discord will not detect or take action against automated tools. Use at your own risk.
Discord may have changed their API. Check the GitHub Issues page to see if others have reported the same problem.
| Browser | Status |
|---|---|
| Chrome | Supported |
| Firefox | Supported |
| Edge | Supported |
| Safari | Supported (with Tampermonkey) |
| Opera | Supported |
- Make sure you are logged into Discord
- Try refreshing the page
- Try logging out and back into Discord
This is normal. Detcord will automatically wait and retry when rate limited.
- Ensure you are the author of the messages
- System messages (joins, boosts, etc.) may not be deletable
- Some message types in archived threads cannot be deleted
This project is licensed under the MIT License. See the LICENSE file for details.
We welcome contributions! Please see our Contributing Guide for details.
Before contributing, please read:
- CONTRIBUTING.md - Contribution guidelines
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Detcord is an independent project. Discord is a trademark of Discord Inc.