https://github.com/bboe/deslackify
A program to delete old slack messages.
https://github.com/bboe/deslackify
python slack slack-api
Last synced: over 1 year ago
JSON representation
A program to delete old slack messages.
- Host: GitHub
- URL: https://github.com/bboe/deslackify
- Owner: bboe
- License: bsd-2-clause
- Created: 2019-02-24T06:29:19.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2021-07-17T06:44:26.000Z (almost 5 years ago)
- Last Synced: 2025-03-18T10:51:27.326Z (over 1 year ago)
- Topics: python, slack, slack-api
- Language: Python
- Size: 26.4 KB
- Stars: 20
- Watchers: 0
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# deslackify
A tool to remove your own slack messages.
## Installation
```sh
pip install deslackify
```
## Obtaining Slack Legacy Token
Generate a token via: https://api.slack.com/custom-integrations/legacy-tokens
## Running
```sh
deslackify --token TOKEN USERNAME
```
By default `deslackify` will remove USERNAME's messages that are more than a
year old. You may also manually specify a `before` date via:
```sh
deslackify --token TOKEN --before YYYY-MM-DD USERNAME
```
__Note__: If no results are found, you may need to replace `USERNAME` with
`USERID`. You can find the `USERID` by going to `Profile & Account`, and then
clicking the three dots, and at the bottom, "Copy member ID".