Skip to content

Instantly share code, notes, and snippets.

View aldidoanta's full-sized avatar

Aldi Doanta Kurnia aldidoanta

View GitHub Profile
@aldidoanta
aldidoanta / delete-slack-messages.js
Last active March 3, 2020 18:02 — 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 #############################################################################################################