Skip to content

A nodejs tool for clearing all messages in a slack channel

Notifications You must be signed in to change notification settings

mattfiocca/clear-slack-channel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clear-slack-channel

A nodejs tool for clearing all messages in a Slack channel

Installation

  • Setup an OAuth token for your own Slack app. Read More
  • Create a config.json file in the same directory as clear.js containing your token:
{
	"oauth_token": "xoxp-[YOUR_AUTH_TOKEN]"
}
  • npm install to install modules

Run

To run the command:

node clear channel-name

Notes

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

About

A nodejs tool for clearing all messages in a slack channel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published