Skip to content

Instantly share code, notes, and snippets.

View Vractos's full-sized avatar
🎯
Focusing

Vinicius Vractos

🎯
Focusing
View GitHub Profile
@Vractos
Vractos / delete-slack-messages.js
Last active November 10, 2021 23:16 — forked from firatkucuk/delete-slack-messages.js
Deletes slack public/private channel messages, private chat messages and channel thread replies.
#!/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';
// Legacy tokens are no more supported.
// Please create an app or use an existing Slack App