website / greasyfork / github
mass delete all discord messages from any dm or channel
how to use
prereq
download a userscripts manager (eg. ViolentMonkey)
Note: Chrome users: ViolentMonkey is unsupported due to extension Manifest V2 deprecation. A temporary workaround is needed: steps to allow legacy extension manifest version flag
steps
- download this script from GreasyFork or the JS file here
- open discord in the browser
- enable script
- open the dm or channel where you want to delete the messages
- press the new
trash icon
in top right-hand corner
- press all the blue
get
buttons in the popup
- configure options (default: all)
- press green
start
button
- wait for it to finish (can take many hours!)
prevent automatically sleeping on power adapter
(optional -> see note below)
- rerun a few more times to delete any skipped messages (quicker than first time)
Note: I recommend you skim through the entire chat to confirm if all messages are deleted. If not simply re-run until all done (sorry this is a bug - its not perfect, but still better than manually deleting single msgs imo)
re-enable allowing computer to sleep
(optional -> see note below)
- done! - you can disable the userscript until the next time you need it
Note: you only need to prevent sleep if you have a lot of messages to delete and/or will likely not be using your computer the whole time (ie. display turns off and computer sleeps) (instructions for macOS, please google and share for other OS)
options
self-explanatory. refer to the forked wiki if you need more info
find message ids
by right-clicking them
adjust delay
in ms to test for optimal deletion rate
Range
before date
after date
After message id
Before message id
Search Delay
rec: 1000
Delete Delay
rec: 800
Search messages
Containing Text
Has: Link
Has: File
Include Pinned
privacy policy
i adhere to the original creator's Privacy Policy
discord explicity prohibits the use of unauthorized third-party scripts through their TOS. so, usage of this script can result in consequences such as account suspension, bans, etc. personally haven't had issues but, please use at your own risk.