Deletecord - Mass Delete Discord Messages

在Discord浏览器UI中添加按钮,以批量删除Discord频道和私信中的消息

作者
fuwawascoco
日安装量
9
总安装量
1,485
评分
0 0 0
版本
0.1
创建于
2024-11-23
更新于
2025-01-29
大小
26.8 KB
许可证
MIT
适用于

deletecord

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

  1. download this script from GreasyFork or the JS file here
  2. open discord in the browser
  3. enable script
  4. open the dm or channel where you want to delete the messages
  5. press the new trash icon in top right-hand corner
  6. press all the blue get buttons in the popup
  7. configure options (default: all)
  8. press green start button
  9. wait for it to finish (can take many hours!)
  10. prevent automatically sleeping on power adapter (optional -> see note below)
  11. 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)

  1. re-enable allowing computer to sleep (optional -> see note below)
  2. 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.