Skip to content

Instantly share code, notes, and snippets.

View AbdealiLoKo's full-sized avatar

AbdealiLoKo AbdealiLoKo

  • Corridor Platforms
  • Bengaluru
View GitHub Profile
@AbdealiLoKo
AbdealiLoKo / delete-slack-messages.js
Last active July 28, 2019 13:30 — forked from firatkucuk/delete-slack-messages.js
Deletes slack public/private channel and chat messages.
#!/usr/bin/env node
// To get stats on all channels, call:
// node ./delete-slack-messages.js
// To delete messages for a particular channel, get the Channel ID and pass as a param:
// node ./delete-slack-messages.js CHANNEL_ID
// Channel ID is on the the browser URL.: https://mycompany.slack.com/messages/MYCHANNELID/
// CONFIGURATION #######################################################################################################