This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Discord Bulk Delete Own Messages in Channel

Social Media Tools · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategorySocial Media Tools
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES This tool helps you clean up your own messages in a Discord channel by identifying and deleting them in bulk based on age and message length. You can filter messages older than a specified number of days and/or messages shorter than a maximum character length. The tool scans the current channel, extracts your own messages with timestamps and content previews, and presents matching messages in a scrollable list with checkboxes. You can then select which messages to delete and execute the action with a single click. The tool also allows you to ignore specific messages to exclude them from future scans. WHERE IT RUNS The script runs directly inside the Discord web page in the current channel view. It does not require a separate extension popup, background process, or external server. Everything happens within the page context, interacting with Discord's React-based DOM components. It works on the desktop web version of Discord when viewing any text channel where you have permission to delete your own messages. HOW TO USE 1. Open Discord in your web browser and navigate to a text channel. 2. Open the BotGentz panel and set your criteria: - "Min days old": Enter the minimum age in days (e.g., 7). Messages older than this will be flagged. - "Max message length": Enter a maximum character count (e.g., 50). Messages shorter than or equal to this will be flagged. - At least one filter must be set (age or length). 3. Click "Scan & Delete" to start the process. 4. The script will scroll up through the channel to load older messages, identify your own messages, and filter those matching your criteria. 5. A list of matching messages appears with checkboxes and details (message ID preview, age in days, content preview). 6. Select the messages you want to delete (all are checked by default). 7. Click "Delete Selected" to begin. The script will hover over each message, click the More button, select Delete, and confirm the action in batches to avoid rate limits. 8. Use "Ignore Selected" to add messages to an ignore list so they are not shown in future scans. TECHNICAL MECHANISM Unlike Discord bots that rely on the Discord API, this script operates purely on the public DOM of the Discord web interface. It identifies your own messages by detecting visual indicators such as right-alignment, message container styling, and avatar positioning. Message timestamps are extracted from elements' datetime attributes or parsed from text using relative time patterns like "X days ago". Message content is extracted from markup content elements. The script scrolls the message container programmatically to load older messages, then scans for messages matching the filters. For deletion, it uses event-driven interaction: it triggers a hover event on the message to reveal action buttons, clicks the More button (three dots), identifies the Delete menu item by text content, clicks it, and confirms the deletion. All actions include retry logic with spacing to account for React's asynchronous rendering and to avoid triggering Discord's rate limiting. The script includes fallback mechanisms to locate buttons and menu items even when Discord's class names change, using text-based selectors and aria-label attributes. THE PANEL The tool appears as a draggable, resizable panel on the side of your screen. You can drag it to any position by clicking and holding the header, resize it by dragging the bottom-right corner, and collapse it to a small bubble when not in use. Press the Escape key to close the panel. The panel remembers its position and size per site (discord.com) so it stays where you left it on your next visit. PLEASE NOTE This script requires the free BotGentz extension to run. It does not store any personal data except for a list of ignored message IDs, which is saved locally in your browser using GM_setValue. No data is sent to any external server. Discord frequently updates its website, which may break the script. If you encounter issues, check for updates or contact support. Use responsibly and respect Discord's terms of service. Deleting many messages in a short time may trigger temporary action blocks. Deleted messages cannot be recovered.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.