Skip to content

Instantly share code, notes, and snippets.

View harrywebster's full-sized avatar

Harry Webster harrywebster

  • Derbyshire
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