undiscord

Delete all messages in a Discord channel or DM

TLDR: Watch this 40s video instructions

  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
    • Firefox (Windows, Linux, Chrome OS): F12 or Control+Shift+K
    • 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.

Screenshot