You have to know how to use your browser developer tools to use this thechnique.
The URL must be like https://discordapp.com/channels/XXXXXXX
and not https://discordapp.com/channels/XXXXXXXXX/YYYYYYYY
. If so, change it manually. Once on the right page, you must not reload or navigate.
- Open the dev tools (F12), open the Network tab. (You should clear all requests for better readability if you see some.)
- Delete one message manually. In the request log, you will see a request with a
DELETE
method. - Click on the request to open the details, and on the Headers tab, copy the 'authorization' thoken. It's a long text with dots like
MTX5MzQ1MjAyMjU0NjA2MzM2.ROFLMAO.UvqZqBMXLpDuOY3Z456J3JRIfbk
.
Edit the javascript code from this tutorial in a text editor.
Find the line starting with with var authToken =
and paste the token. Pay attention to the quotes. The code should read like this :
// Paste your token between the quotes :
var authToken = 'MTX5MzQ1MjAyMjU0NjA2MzM2.ROFLMAO.UvqZqBMXLpDuOY3Z456J3JRIfbk'
This script will only delete the messages that are visible. So, if you want to delete more messages, you should scroll top to show more of them before launch. If you do not have the permissions to delete some messages, the script should still work with yours (not tested).
Copy the full code that you have edited, paste it into the browser javascript console and watch your messages being deleted.
I've updated Altoid1's version. This currently works, and as a little bonus tracks how many of your messages it has deleted.
https://github.com/TheOutride/Delete-Discord-Direct-Messages
Let me know if it works!