Slack clean all messages (~8K) in a channel

Hann picture Hann · Sep 28, 2015 · Viewed 146k times · Source

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.

Answer

Hann picture Hann · Sep 28, 2015

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