This script allows you to delete all your direct messages (DMs) on Discord using data retrieved through a data request to Discord. It fetches the IDs of your sent messages and deletes them automatically.
- Log in to your Discord account.
- Click on User Settings at the bottom left.
- Go to the Privacy & Safety section.
- Scroll down to the Request Data section.
- Select "Messages" and click on Request Data.
- Discord will send you a download link via email once your data is ready. This may take several days.
Once you receive and download your data, you will find a file containing all the messages you have sent, including their IDs. This file will be used by the script to delete your messages.
- Download the executable from the releases page.
- Extract the messages file from your Discord data request and place it in the same directory as the executable.
- Run the executable with the following command:
.\ClearMessages.exe "UR_TOKEN"
To show messages content
.\ClearMessages.exe "UR_TOKEN" debug
- Clone this repository or download the project files to your machine:
git clone https://github.com/M1000fr/clear-all-discord-dm.git
- Navigate to the project directory:
cd clear-all-discord-dm
- Install the project dependencies:
yarn install
- Extract the messages file from your Discord data request and place it in the project directory. This should be look like this:
.
├── messages
│ ├── c{CHANNEL_ID}
│ │ ├── channel.json
│ │ └── messages.json
│ ├── ...
│ └── index.json
- Build
yarn build
- Run the script:
node . "UR_TOKEN"
To show messages content
node . "UR_TOKEN" debug