{"id":18653339,"url":"https://github.com/chrislgarry/slackterminator","last_synced_at":"2025-05-12T06:16:57.433Z","repository":{"id":65979192,"uuid":"97793171","full_name":"chrislgarry/SlackTerminator","owner":"chrislgarry","description":"Simple script to delete all of the messages in a slack channel.","archived":false,"fork":false,"pushed_at":"2017-07-26T06:10:07.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"chrislgarry-dev","last_synced_at":"2025-05-12T06:16:23.493Z","etag":null,"topics":["delete","messages","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/chrislgarry.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}},"created_at":"2017-07-20T05:17:01.000Z","updated_at":"2024-10-27T18:49:24.000Z","dependencies_parsed_at":"2023-02-19T18:31:12.659Z","dependency_job_id":null,"html_url":"https://github.com/chrislgarry/SlackTerminator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrislgarry%2FSlackTerminator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrislgarry%2FSlackTerminator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrislgarry%2FSlackTerminator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrislgarry%2FSlackTerminator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrislgarry","download_url":"https://codeload.github.com/chrislgarry/SlackTerminator/tar.gz/refs/heads/chrislgarry-dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253685240,"owners_count":21947309,"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","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":["delete","messages","slack","slack-api"],"created_at":"2024-11-07T07:11:11.515Z","updated_at":"2025-05-12T06:16:57.386Z","avatar_url":"https://github.com/chrislgarry.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SlackTerminator\nDelete all of the messages in a Slack channel.\n\n# Dependencies\n\n1. [Slack Python SDK](https://github.com/slackapi/python-slackclient), Slack API token with permissions (see below).\n2. [Python](https://www.python.org/)\n\nThis script was developed and tested with Slack Python SDK version ```1.0.6```, Python version ```2.7.13```.\n\n# Slack Permissions\nThe Slack app tied to the API token must have the necessary permissions for channels.list (to find the ID of the channel), channels.history (get all messages from the channel), and chat.delete (delete messages from the channel).\n\n# Install\n\n1. Install [Slack Python SDK](https://github.com/slackapi/python-slackclient).\n\n2. Clone this repo.\n\n# Usage\n\nIn this repo, from commandline:\n\n```\nexport SLACK_API_TOKEN=\u003cyour-slack-api-token\u003e\nuser$ python slackterminator.py --help\nusage: slackterminator.py [-h] --channel_name \u003cchannel name without hashtag\u003e\n\nDelete all messages from a given Slack channel.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --channel_name \u003cchannel name without hashtag\u003e\n                        The name of the Slack channel to delete all messages\n                        in.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrislgarry%2Fslackterminator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrislgarry%2Fslackterminator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrislgarry%2Fslackterminator/lists"}