Use Case: Archive Empty Public Slack Channel

Follow

Contents

Archive Empty Public Slack Channel

We have a lot of empty channels in our Slack instance and we want an automatic way to keep it clean and uncluttered.

This Workflow will trigger once the ‘Empty Public Channels’ alert has exceeded its threshold. A warning message will be sent to the empty public channel via Slack which will allow any new channel members to contact their Admin Slack channel (#it-team) within a 30 day window before proceeding with automatically archiving the channel. A Slack message will also be sent to the IT Team before the 30 days and after the channel as been archived.

Screen_Shot_2018-12-20_at_4.10.08_PM.png

1. ‘Empty Public Channels’ Slack Alert

The desired threshold of the ‘Empty Public Channels’ system Alert will need to be configured in the Alerts Manager section of the platform prior to creating your Workflow. In our example below, we have the alert enabled with a threshold set to 0.

Screen_Shot_2018-12-06_at_2.38.56_PM.png

2. Send Slack Channel Message

First, use the Workflow to target the Slack channel that will be notified by message once the ‘Empty Public Channels’ alert has been triggered.

  • This action will be used as a warning message to alert the channel of the scheduled archive.
  • If someone joins the channel within the 30 day window, they will see the notification for the scheduled archive and know to contact their Admin to stop the channel from being deleted.

Screen_Shot_2018-12-20_at_4.15.17_PM.png

Then select the “Send Slack Channel Message” action to notify the IT Team of the empty channel.

Screen_Shot_2018-12-20_at_4.17.04_PM.png

3. Wait for ‘30’ Days

Use the ‘Wait for Duration’ action to pause your Workflow and allow any members who joined the channel to reach out to the admins about the targeted Slack channel.

Screen_Shot_2018-12-20_at_4.12.59_PM.png

In the event a member contacts the #it-team Slack channel and requests that the channel not be deleted, the ‘Wait for Duration’ action gives the admin the option to stop the Workflow and refrain from automatically archiving the Slack channel.

Screen_Shot_2018-12-18_at_4.08.36_PM.png

4. Archive Channel

After the 30 days have passed, and no Slack channel members have contacted the IT Admins, archive the empty channel to remove it from your Slack environment.

Screen_Shot_2018-12-20_at_4.14.14_PM.png

5. Send Slack Channel Message

Lastly, after the 30 days have passed, send the IT Team one final message notifying them of the empty channel removal.

Screen_Shot_2018-12-21_at_3.50.26_PM.png

BetterCloud Reference Articles

Slack Related Articles

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request