A nodejs tool for clearing all messages in a Slack channel
- Setup an OAuth token for your own Slack app. Read More
- Create a
config.json
file in the same directory asclear.js
containing your token:
{
"oauth_token": "xoxp-[YOUR_AUTH_TOKEN]"
}
npm install
to install modules
To run the command:
node clear channel-name
This tool is sensitive to Slack's rate limits:
conversations.list = 20 requests per minute
conversations.history = 50 requests per minute
chat.delete = 50 requests per minute