Sign inSign up

gustajz/slack-cleanup

By gustajz

•Updated about 8 years ago

Docker Image for Slack Files Delete

Image
0

492

gustajz/slack-cleanup repository overview

⁠Docker Image for Slack Files Delete

This image use a Python script developed by @technmsg⁠ with little modifications. It's usefull if you don't have python on your PC and loves Docker.

⁠Using

Before starting you need create a Legacy Token⁠.


$ docker run -it --rm gustajz/slack-cleanup -h
usage: slack_delete.py [-h] -t TOKEN [-d DAYS] [-c COUNT]

optional arguments:
  -h, --help            show this help message and exit
  -t TOKEN, --token TOKEN
                        Specifies the OAuth token used for authentication,
                        created at (https://api.slack.com/custom-
                        integrations/legacy-tokens)
  -d DAYS, --days DAYS  Delete files older than x days (optional)
  -c COUNT, --count COUNT
                        Max amount of files to delete at once (optional)
$ docker run -it --rm gustajz/slack-cleanup --token YouSlackAPIToken --days 20

Tag summary

Content type

Image

Digest

Size

32.6 MB

Last updated

about 8 years ago

docker pull gustajz/slack-cleanup