Bulk delete your Discord messages from the cli manually or automated
- Direct messages ✅
- Server text channels ✅
- Server threads ✅
- Server voice-text channels ❌
Additionally Ivy features a lot of options to configure.
- Install
NodeJS 18andnpm 8 git clone https://github.com/Traurige/Ivy.gitcd Ivynpm install
- Compile the TypeScript files after the first installation or after an update
npx tsc
- Run Ivy
node src/index.js
tokenyour Discord token (How do I get it?)purgeGuildsif true, direct messages and threads will be purgedpurgeChannelsif true, channels will be purged (needspurgeGuildsto be true)purgeThreadsif true, threads will be purged (needspurgeGuildsto be true)purgeDirectMessagesif true, direct messages will be purgedguildsToExcludeguilds that should be preservedchannelsToExcludeguild channels that should be preservedthreadsToExcludeguild threads that should be preserveddirectMessagesToExcludedirect messages that should be preservedonlyIncludeTheseGuildsonly purge these guilds of all fetched guildsonlyIncludeTheseChannelsonly purge these guild channels of all fetched guild channelsonlyIncludeTheseThreadsonly purge these guild threads of all fetched guild threadsonlyIncludeTheseDirectMessagesonly purge these direct messages of all fetched direct messagesincludeNsfwif true, messages from NSFW channels will be purgeddeletePinsif true, pinned messages will be purgeddeleteMessagesWithAttachmentsif true, messages with attachments will be purgedexcludeMessagesBeforeDatedon't delete messages before a given date
{
"token": "a9sduo1onojaoIJDOjao9pjsIDJIPAIsdippa0q2jma",
"purgeGuilds": true,
"purgeChannels": true,
"purgeThreads": false,
"purgeDirectMessages": true,
"guildsToExclude": ["01283759812912", "4891212386571"],
"channelsToExclude": [],
"threadsToExclude": [],
"directMessagesToExclude": ["94891248213231"],
"onlyIncludeTheseGuilds": [],
"onlyIncludeTheseChannels": [],
"onlyIncludeTheseThreads": [],
"onlyIncludeTheseDirectMessages": [],
"includeNsfw": true,
"deletePins": false,
"deleteMessagesWithAttachments": true,
"excludeMessagesBeforeDate": "2020-05-24"
}- Open the developer tools in your Discord client or browser logged into Discord
- Copy and paste the following code into the JavaScript console:
alert((webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken());- Right-click a guild and click
Copy ID
- Copy the link to a message in the channel or thread and paste it somewhere
- Copy the second array of numbers
- Copy the link to a message in the direct message and paste it somewhere
- Copy the first array of numbers
- Create a shell script that executes
node src/index.jsinside theIvyfolder
#!/usr/bin/bash
cd path/to/ivy
node src/index.js- Register a cron job, which executes the script