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
@firatkucuk
firatkucuk / delete-slack-messages.js
Last active November 5, 2024 13:15
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