/deleteDiscordMessages

Delete all messages in a Discord channel or DM (Easy and fast) Bulk delete

Primary LanguageJavaScript

Delete all messages in a Discord channel or DM

  1. Select and Copy this script: deleteDiscordMessages.js

  2. Open Discord in a browser (like Chrome, Safari or Firefox)
    and go to a #Channel or a DM conversation

  3. Open DevTools pressing:

    • Chrome (Windows, Linux, Chrome OS): F12 or Control+Shift+J
    • Chrome (Mac): Command+Option+J
    • Safari (Mac): Command+Option+C
  4. Paste (Ctrl+V) the script in the "Console" tab, then press ENTER, a popup window will open;

  5. Click on the blue buttons near Authorization, Author and Channel.
    (Optional: getting authToken, authorId, channelId and messageId manually)

  6. Click the "START" button.

or Watch this 40 seconds video

I made this tool just for you ❤️ , it would be awesome if you could just click the ⭐️ Star button at the top!

If you have issues or just need help open an issue here


Features

  • Fastest script out there, it auto adjusts the delay to be the fastest your internet and discords allows!
  • Easy interface with instructions
  • Respect discord API rate limits
  • Auto detect current authToken, authorId, channelId
  • It can delete a specific range of messages
  • It can delete only links or attached files
  • Comprehensive log of messages being deleted (with their content)
  • Hide private information for taking screenshots
  • Detects system messages and skips them like "You started a voice call"
  • You can use your computer and discord while it is running (unlike macro key scripts)
  • Start/stop whenever you want
  • Works with even thousands of messages

Originally from https://gist.github.com/victornpb/135f5b346dea4decfc8f63ad7d9cc182


About running code on your console

I don't recommend running code from random places you get on the internet. For that same reason, I deliberately choose to make it readable (that's why it is a bit lenthy). That way people can analyze it and understand what does it does before running it, and be sure that nothing sketchy is happening under the hood.


DO NOT SHARE YOUR authToken!

Sharing your authToken on the internet will give full access to your account! There are bots gathering credentials all over the internet. If you post your token by accident, LOGOUT from discord on that same browser you got that token imediately. Changing your password will make sure that you get logged out of every device. I advice that you turn on 2FA afterwards.

If you are unsure do not share screenshots, or copy paste logs on the internet.


DISCLAIMER: THE SOFTWARE AND ALL INFORMATION HERE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

By using any code or information provided here you are agreeing to all parts of the above Disclaimer.