Imagine your account was removed from a Slack team. That team still has an icon in the app though. It’s useless to you now, so you want to remove it. You right click and remove the team, but to your surprise, it reappears when you reopen the app. Based on some comments online, it looks like you have to be logged in to a team you’re no longer part of in order to remove the team from the app. That’s a fun puzzle.
Luckily, there is a workaround by mucking around in the Slack preferences.
- Close the Slack app.
grepfor the team name. You’ll find it in a few places, but
~/Library/Containers/com.tinyspeck.slackmacgap/Data/Library/Application Support/Slack/storage/slack-teamslooks promising.
- View that file to verify that the team is there. If you can read unformatted JSON easily, I’m impressed. If you’re like me and can’t, use
jqor your tool of choice to format it.
- Remove the node that has the team from that file with your editor of choice.
- Reopen Slack app.
- No longer see the team! Catch-22 bypassed.