Summary
In this page, writting knowledged about management and operation Slack.
Cleanup
Slack APIs provides the ability to delete messages.
The slack-cleaner2 is wrapped the Slack APIs.
Setup
On local machine:
Run command.
mkdir work && cd work
pipenv install slack-cleaner2
On the Slack management web page:
- Open Your Apps page in Slack web.
- Click Create an App, then setup.
Copy User OAuth Token.
Delete messages
# Delete messages before date. e.g,. Dec/31/2020
slack-cleaner2 --token {TOKEN} --as_user --message --channel healthcare --before 20201231 --perform