Slack Message Deleter
Bulk delete your messages on Slack. Using Slack's public Web API, no workspace app install needed.
config.json file from the template file:
mv config.json.example config.json
Config your workspace and channel information:
workspace: Url to your workspace, for example
targetChannelId: ID of the channel you want to delete your message, for example:
currentUserId: Your user ID, keep reading to see how to obtain it.
cookie: Keep reading to see how to obtain them.
1. Obtain your User ID
Click on your user name, select View full profile, on your profile screen, click More -> Copy member ID.
2. Obtain the Token from Slack Web App
Use your browser devtool and inspect the Network tab, search for any
users/info API call and check the request body.
Your Token should be something like:
3. Obtain the Cookie from Slack Web App
Inspect any request and check the request headers, copy everything in the Cookie field.
4. Run the delete script
Install the dependencies if you haven't:
Run the delete script after you configured everything in
npm run start
This script does not required you to install any app into your workspace.
If you are non-admin users, you can only delete your own messages.
Even if you are admin users, in 1:1 DMs, you can only delete your own message.