···11+MIT License
22+33+Copyright (c) 2026 azom
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
+45
README.md
···11+# Discoraser
22+33+> [!WARNING]
44+> Automating actions on user accounts ("self-botting") violates [Discord's Terms of Service](https://support.discord.com/hc/en-us/articles/115002192352-Automated-user-accounts-self-bots-) and could result in your account being limited or terminated. This tool simulates human-like behavior to reduce that risk, but there are no guarantees. Use at your own risk.
55+66+A userscript that deletes your Discord messages by scrolling through channels and DMs. Navigate to a conversation, click Start, and it handles the rest.
77+88+## What it does
99+1010+- Scrolls up through a channel/DM and deletes your messages
1111+- Removes your reactions from other people's messages (toggleable)
1212+- Lets you keep messages newer than X days
1313+- Auto-detects your user ID from Discord's internals
1414+1515+## Why it's slow
1616+1717+The script intentionally operates at human speed: 3-8 second delays between deletions, with longer breaks every 5 messages. This is by design:
1818+1919+- Discord rate-limits aggressive API usage and can flag/ban accounts for bot-like behavior
2020+- Randomized delays make the pattern less detectable
2121+- It's meant to run in the background (overnight, over a few days) while you do other things
2222+2323+If you need instant bulk deletion, this isn't the tool for that. This is for when you want to be thorough (it scrolls through every message rather than relying on Discord's search API, so nothing gets missed) and want to minimize the risk of detection.
2424+2525+## Install
2626+2727+1. Install a userscript manager ([Violentmonkey](https://violentmonkey.github.io/), Tampermonkey, etc.)
2828+2. Create a new script and paste the contents of `discord-message-cleaner.user.js`
2929+3. Open Discord in your browser (not the desktop app)
3030+3131+## Usage
3232+3333+1. Navigate to the DM or channel you want to clean
3434+2. The panel appears at the top-left (drag it anywhere)
3535+3. Set how many days of messages to keep (default: 7)
3636+4. Click **Start**
3737+5. Click **Stop** whenever you want to pause
3838+3939+The script processes the current channel only. Move to another DM/channel and start again to clean that one.
4040+4141+## About
4242+4343+This was fully implemented by an LLM. I read through the code and tested it myself. I just didn't have the time or desire to figure out Discord's obfuscated DOM structure and write all of this from scratch.
4444+4545+[Undiscord](https://github.com/victornpb/undiscord) is a great project and its author did an awesome job keeping it alive solo for years. Discord is a massive company pushing changes constantly, and chasing that as a single unpaid developer is genuinely hard. It just wasn't working reliably for me at the time, so I built this as a personal workaround.