Skip to content

Instantly share code, notes, and snippets.

View senechaux's full-sized avatar
🎯
Focusing

Angel senechaux

🎯
Focusing
View GitHub Profile
@firatkucuk
firatkucuk / delete-slack-messages.js
Last active November 18, 2024 19:13
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