Skip to content

Slack workspace has no storage left. #41

@chriscoffee

Description

@chriscoffee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions