Skip to content

Instantly share code, notes, and snippets.

View rex-ya's full-sized avatar
🚀
Flying

Rex rex-ya

🚀
Flying
  • REX
  • Seoul
View GitHub Profile
@rex-ya
rex-ya / delete-slack-messages.js
Created March 12, 2020 11:41 — forked from firatkucuk/delete-slack-messages.js
Deletes slack public/private channel and chat messages.
#!/usr/bin/env node
// Channel ID is on the the browser URL.: https://mycompany.slack.com/messages/MYCHANNELID/
// Pass it as a parameter: node ./delete-slack-messages.js CHANNEL_ID
// CONFIGURATION #######################################################################################################
const token = 'SLACK TOKEN'; // You can learn it from: https://api.slack.com/custom-integrations/legacy-tokens
// GLOBALS #############################################################################################################