Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack workspace has no storage left. #41

Open
chriscoffee opened this issue Jan 24, 2018 · 0 comments
Open

Slack workspace has no storage left. #41

chriscoffee opened this issue Jan 24, 2018 · 0 comments

Comments

@chriscoffee
Copy link
Contributor

chriscoffee commented Jan 24, 2018

Overview

Due to the vast amounts of people on the slack we tend to use up our 5GB of data quite quickly. It would be a good option for the bot to clear the backlog of files every x days or users with specific privileges to do this i.e Michael.

Issue

I tried to upload a relativly small image.

I got this as a response:

Your file was uploaded — it’s safe and sound in Slack. Unfortunately your workspace doesn’t have any storage space left. To get more space, you can upgrade to a paid account or delete some of your older files.

Therefore I know we ran out of space on the slack workspace for this month.

Possible Solution

We can utilise slack's files.list and files.delete calls. The bot would need to pass the token (and i think it needs a count so it doesn't timeout but correct me if i'm wrong) as params. Then with the json response call files.delete and iterate over the file ids that were returned.

We should probably have some output of the count of items deleted and where permitting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant