Skip to content

Python script to delete all your Slack DMs 🔥

Notifications You must be signed in to change notification settings

TheDen/slack-dm-purge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

🔥 slack-dm-purge 🔥

Motivation

Given the updated Slack Policy which grants customers on Slack's Plus and Enterprise Grid plans access to a self-service tool for exporting data from all public and private channels, having an option to delete your entire DM history is something I feel is needed.

Unfortunately Slack doesn't allow bulk deletes, and apparently there isn't a way of knowing if your DMs are actually private:

This functionality was previously available too, but it used to notify users when it was turned on, so they’d know that their DMs weren’t entirely private.

This handy script allows you automatically to delete all your DMs given you have a slack token.

Prerequisites

pip3 install -r requirements.txt

Deleting all private DMs

./slack-dm-purge.py

This script will delete all your DMs.

Note: The env var SLACK_TOKEN needs to be set

Alternatives

If you don't have a Slack token, you can also use this chrome extenion to delete your messages through the browser once logged into slack.

About

Python script to delete all your Slack DMs 🔥

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages