No description
Find a file
2017-07-05 15:34:26 -04:00
.gitignore Updated README and cleaned up output 2017-06-04 19:34:13 +10:00
LICENSE Initial commit 2017-06-04 16:11:58 +10:00
main.go change time difference to 90 days 2017-07-05 15:34:26 -04:00
README.md Updated documentation 2017-06-04 19:54:15 +10:00

Slack Cleanup

CircleCI

A small Go program for cleaning up slack file uploads. Useful if you keep hitting limits on your team plan as there is no way to bulk delete files.

Installing Slack Cleanup

go get -u github.com/madecomfy/slack-cleanup

You will need to generate an API token that has permission to delete files. Add this token to your environment variables. At MadeComfy we use Direnv to manage local environment variables.

export SLACK_API_TOKEN=xoxp-111111-1111111-1111111-1111111-111111

Running Slack Cleanup

We assume your $GOPATH/bin folder is in your PATH.

$ slack-cleanup

Slack cleanup will delete any files older than the past 2 weeks.

Future Improvements

  • S3 backups of old files
  • Configurable time periods
  • Lamba installation