Giter Club home page Giter Club logo

Comments (10)

sgratzl avatar sgratzl commented on September 6, 2024

which version of the slack-cleaner are you using, since this fork is python 3 compatible while the original isn't (but there is already a PR for that)

see

for k, v in user_dict.items():

from slack-cleaner.

robditoro avatar robditoro commented on September 6, 2024

from slack-cleaner.

sgratzl avatar sgratzl commented on September 6, 2024

re pip install, you can also try to install it via:

pip install -e git+https://github.com/sgratzl/slack-cleaner.git#egg=slack-cleaner

from slack-cleaner.

robditoro avatar robditoro commented on September 6, 2024

from slack-cleaner.

sgratzl avatar sgratzl commented on September 6, 2024

please make sure that th token has the necessary permission scopes see https://github.com/sgratzl/slack-cleaner#minimal-slack-permission-scopes-required

from slack-cleaner.

robditoro avatar robditoro commented on September 6, 2024

More than the minimum scope:
screen shot 2018-04-13 at 7 46 57 am

from slack-cleaner.

sgratzl avatar sgratzl commented on September 6, 2024

is there a groups:history and groups:readscope?

from slack-cleaner.

robditoro avatar robditoro commented on September 6, 2024

Can't believe I missed that. No there wasn't, and now it works!

Just one more question – if I want to delete all DMs between two users:
slack-cleaner --token <TOKEN> --message --direct sherry --user johndoe
Will that only delete messages sent by johndoe in the DM between johndoe and sherry?
If I do --direct sherry --user "*", will that delete all DMs with sherry (and other users)?

Thanks so much – still feeling my way through Python!

from slack-cleaner.

sgratzl avatar sgratzl commented on September 6, 2024

direct messages are a special thing, they are very hard to delete, see also #22 . As far as I know one can only deletes ones own messages that the owner of the token sent.

from slack-cleaner.

robditoro avatar robditoro commented on September 6, 2024

Ok, no worries – thank you for your help!

Edit: Figured out that I can delete files from DMs sent by other users, just not messages... strange that there isn't a scope that allows me to do that with messages also.

from slack-cleaner.

Related Issues (20)

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.