We currently have a Slack channel with ~8K messages all comes from Jenkins integration. Is there any programmatic way to delete all messages from that channel? The web interface can only delete 100 messages at a time.
Go to the channel where you want to delete your message and click on the three-dot … icon for More Actions. There you can choose to edit or delete the message. Click on Delete message to delete your message.
From your desktop, open the channel you'd like to delete. Click the channel name in the conversation header. Click Settings, then Delete channel. Select Delete this channel.
Hover over the message you'd like to delete. Click the three dots icon. Click Delete message. Select Delete to confirm.
I quickly found out there's someone already made a helper: slack-cleaner for this.
And for me it's just:
slack-cleaner --token=<TOKEN> --message --channel jenkins --user "*" --perform
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With