{"id":17720100,"url":"https://github.com/theden/slack-dm-purge","last_synced_at":"2025-10-11T05:33:04.827Z","repository":{"id":83727804,"uuid":"126934134","full_name":"TheDen/slack-dm-purge","owner":"TheDen","description":"Python script to delete all your Slack DMs 🔥","archived":false,"fork":false,"pushed_at":"2024-05-21T05:51:05.000Z","size":15,"stargazers_count":6,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T17:09:55.310Z","etag":null,"topics":["dms","private-dms","slack","slack-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheDen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-27T05:35:49.000Z","updated_at":"2023-09-27T12:57:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"2fca4f4b-94a0-4808-8799-0bebe3adeaea","html_url":"https://github.com/TheDen/slack-dm-purge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheDen/slack-dm-purge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2Fslack-dm-purge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2Fslack-dm-purge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2Fslack-dm-purge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2Fslack-dm-purge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheDen","download_url":"https://codeload.github.com/TheDen/slack-dm-purge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2Fslack-dm-purge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006320,"owners_count":26084085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dms","private-dms","slack","slack-api"],"created_at":"2024-10-25T15:26:01.367Z","updated_at":"2025-10-11T05:33:04.811Z","avatar_url":"https://github.com/TheDen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔥 slack-dm-purge 🔥\n\n## Motivation\n[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.\n\nUnfortunately Slack doesn't allow bulk deletes, and apparently there isn't a way of knowing if your DMs are actually private:\n\n\u003eThis 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.\n\nThis handy script allows you automatically to delete all your DMs given you have a slack token.\n\n\n## Prerequisites\n\n* `python3`\n* [requests](https://github.com/requests/requests)\n* A valid slack token\n\n`pip3 install -r requirements.txt`\n\n\n## Deleting all private DMs\n\n`./slack-dm-purge.py`\n\nThis script will delete **_all_** your DMs.\n\nNote: The env var `SLACK_TOKEN` needs to be set\n\n## Alternatives\n\nIf 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.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheden%2Fslack-dm-purge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheden%2Fslack-dm-purge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheden%2Fslack-dm-purge/lists"}