Skip to content

Instantly share code, notes, and snippets.

Avatar

AbdealiJK AbdealiJK

  • Corridor Platforms
  • Chennai
View GitHub Profile
@AbdealiJK
AbdealiJK / delete-slack-messages.js
Last active Jul 28, 2019 — forked from firatkucuk/delete-slack-messages.js
Deletes slack public/private channel and chat messages.
View delete-slack-messages.js
#!/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 #######################################################################################################