slack-cleanup/README.md
2017-06-04 19:45:49 +10:00

888 B

Slack Cleanup

CircleCI

A program for cleaning up slack file uploads. Useful if you keep hitting limits on your plan.

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

slack-cleanup

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

Future Improvements

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