Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Angel senechaux

🎯
Focusing
View GitHub Profile
@firatkucuk
firatkucuk / delete-slack-messages.js
Last active Dec 19, 2022
Deletes slack public/private channel messages, private chat messages and channel thread replies.
View delete-slack-messages.js
#!/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