Git Product home page Git Product logo

slack-files-delete's Introduction

Slack Files Delete

Script for bulk delete files in slack.

I love Slack, but I don’t have money enough to pay for all users in my company.

The first problem is the 10k messages history limit, it’s ok, I can deal with that. The second is the storage limit for files.

That second problem you need to delete old files to free space to still able to upload and share files. To do this, you need to open Slack, find files and delete each one, there’s no way to bulk delete. And s so, can deal with that to, with my super power.

So, I wrote this script to do that for me.

Using

You will need to clone this repo and just execute in your terminal like this:

python main.py

slack-files-delete's People

Contributors

egermano avatar simpod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

slack-files-delete's Issues

Hello! Just a simple question

I noticed that you have a variable called DAYS with a 30 value by default.
This means that the script deletes all the files with 30 days from its upload?
Or 30 days back from today?
Does this means (I've already checked) that if we change it to 0 all the files will be deleted?

Thank you, very good work. : )
I'm sorry I'm poor to so here a virtual hug:
https://media.giphy.com/media/xT9DPldJHzZKtOnEn6/giphy.gif

Just delete a single file type

Hi,

we are currently looking for a solution to delete all EMAIL files from slack.
Would it be possible to change your script to do that? just delete email files?

Thanks in advance

Script error

Hey!
When running your script, i get this error:

File "main.py", line 28, in <module>
    files = json.loads(content)["files"]
KeyError: 'files'

Can you help me? Thanks!!

Script Errors in Python 3

Python : 3.6

Script Giving Errors

(SLACK_OPS) ❯ python slack-files-delete/main.py
  File "slack-files-delete/main.py", line 59
    print "No files to delete."
                              ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(int "No files to delete.")?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.