You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
Therefore I know we ran out of space on the slack workspace for this month.
Possible Solution
We can utilise slack's
files.list
andfiles.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 callfiles.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.
The text was updated successfully, but these errors were encountered: