Updated documentation

This commit is contained in:
Tom Jowitt 2017-06-04 19:44:47 +10:00
parent 3d9abde17a
commit d06f41582c

View file

@ -2,15 +2,17 @@
[![CircleCI](https://circleci.com/gh/madecomfy/slack-cleanup/tree/master.svg?style=svg&circle-token=4aee14214b029ff6bcb7664e8c403ef1288e84f4)](https://circleci.com/gh/madecomfy/slack-cleanup/tree/master) [![CircleCI](https://circleci.com/gh/madecomfy/slack-cleanup/tree/master.svg?style=svg&circle-token=4aee14214b029ff6bcb7664e8c403ef1288e84f4)](https://circleci.com/gh/madecomfy/slack-cleanup/tree/master)
A program for cleaning up slack files to free up space. A program for cleaning up slack file uploads. Useful if you keep hitting limits on your plan.
## Setup ## Installing Slack Cleanup
Install Slack Cleanup go get -u github.com/madecomfy/slack-cleanup
go get 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 You will need to generate an API token that has permission to delete files. Add this token to your environment
variables (we use Direnv to manage env vars). variables. At MadeComfy we use [Direnv](https://direnv.net/) to manage local environment variables.
export SLACK_API_TOKEN=xoxp-111111-1111111-1111111-1111111-111111 export SLACK_API_TOKEN=xoxp-111111-1111111-1111111-1111111-111111
## Running Slack Cleanup
slack-cleanup