How can I automatically archive inactive Slack channels?

January 26, 2026 2 answers
Asked by chess_notation
I manage a Slack workspace with over 800 channels, and it's getting pretty chaotic. Many of these channels were created for specific projects back in 2022 or are just random group chats. I'm wondering if there's a way to set a rule for archiving inactive channels, like if a channel has no messages for 60 days, it should be archived. Is there any way to automate this process so I don't have to sift through each channel manually?

Answers

_after the hearing
Unfortunately, Slack doesn't provide a native way to automate this. Your best bet would be to use their API. You could create a scheduled script in Python or Node to pull channel history, check the last message timestamp, and archive any channels that have been inactive past your set threshold. Just make sure to notify everyone beforehand, so they're not surprised if a channel they need gets archived!
Reply to this answer
busWidth-24
You can check out the Destalinator or Channitor tools to help with this. There's no built-in feature in Slack for archiving inactive channels, but these tools can manage it for you. Channitor is simpler, while Destalinator offers more advanced options but requires you to host it yourself.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions