Effortlessly manage your Discord server's message history with the most powerful and reliable purge bot available.
Managing message history in Discord has never been easier. PurgeBot is the premium solution trusted by server administrators who demand performance, reliability, and precision in their moderation tools.
- Target specific users, roles, or everyone
- Filter by date range (1-30 days)
- Server-wide, category, or channel-specific operations
- Skip protected channels during bulk operations
/purge user- Remove all messages from a specific user/purge role- Clear messages from all members with a specific role/purge everyone- Complete channel or category cleanup/purge inactive- Clean up messages from users who left your server/purge deleted- Remove messages from deleted Discord accounts
Filter messages with precision using our intelligent filtering system:
- Smart Auto-Detection - Automatically detects regex patterns vs plain text
- Multiple Filter Modes:
contains- Messages containing specific textregex- Advanced pattern matchingexact- Exact message matchesstarts_with- Messages starting with textends_with- Messages ending with text
- Case Sensitivity Control - Optional case-sensitive matching
Watch your purge operations in real-time with:
- Message count and channel tracking
- One-click cancellation for any operation
PurgeBot respects Discord's permission system:
Send Messages- Send the progress and completed viewView Channel- Access channel contentRead Message History- Scan existing messagesManage Messages- Delete targeted messages
- Users must have
Manage Messagespermission to execute purge commands - Server administrators maintain full control over who can use PurgeBot
- Gaming Communities - Keep channels focused and spam-free
- Professional Servers - Maintain clean, organized communication
- Education Servers - Archive old content efficiently
- Support Communities - Clear resolved help channels
- Large Public Servers - Manage high-volume message traffic
# Delete spam messages from a specific user
/purge user target_id:channel user:@spammer filter:spam
# Remove all messages with links from a role
/purge role target_id:server role:@members filter:"https://" filter_mode:contains
# Clean up messages matching a regex pattern
/purge everyone target_id:channel filter:"(buy|sell|trade)" filter_mode:regex days:7
# Delete messages starting with specific prefix (case-sensitive)
/purge inactive target_id:category filter:"!" filter_mode:starts_with case_sensitive:true- Join Our Support Server - Get instant help from our team
- Report Issues - Help us improve PurgeBot
While we recommend using our hosted version for the best experience, PurgeBot is open-source and can be self-hosted.
View Self-Hosting Instructions
- Node.js 18.0.0 or higher
- Discord Bot Token
- Clone the repository:
git clone https://github.com/biast12/PurgeBot
cd PurgeBot- Install dependencies:
npm install- Configure your bot token:
TOKEN=your_bot_token_here- Build and start:
npm run build
npm run register # Register commands (once)
npm startWindows:
run.bat- Start the botrun.sh- Start the bot (Linux/macOS)
Unlike basic purge bots that struggle with large operations, PurgeBot is engineered from the ground up for:
- Enterprise-grade reliability
- Unmatched performance at scale
- Intuitive user experience
- Continuous updates and improvements
Don't let message clutter slow down your community. Join thousands of server owners who trust PurgeBot for their message management needs.