Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theden/slack-dm-purge
Python script to delete all your Slack DMs π₯
https://github.com/theden/slack-dm-purge
dms private-dms slack slack-api
Last synced: 4 days ago
JSON representation
Python script to delete all your Slack DMs π₯
- Host: GitHub
- URL: https://github.com/theden/slack-dm-purge
- Owner: TheDen
- Created: 2018-03-27T05:35:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T05:51:05.000Z (6 months ago)
- Last Synced: 2024-05-30T01:18:36.356Z (5 months ago)
- Topics: dms, private-dms, slack, slack-api
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π₯ slack-dm-purge π₯
## Motivation
[Given the updated Slack Policy](https://thenextweb.com/apps/2018/03/22/slacks-new-policy-lets-bosses-read-employees-dms-without-consent/) 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
* `python3`
* [requests](https://github.com/requests/requests)
* A valid slack token`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](https://chrome.google.com/webstore/detail/message-deleter-for-slack/eledhnkjmlmljbbamapmggcjkbpcgdlb) to delete your messages through the browser once logged into slack.