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

Unable to delete files #88

Open
dik23 opened this issue Jun 2, 2023 · 0 comments
Open

Unable to delete files #88

dik23 opened this issue Jun 2, 2023 · 0 comments
Labels
question Further information is requested

Comments

@dik23
Copy link

dik23 commented Jun 2, 2023

I am able to delete all messages from a channel using:
slack-cleaner2 --token xoxp-XXXX --channel test-images --as_user --message --perform

However I'm unable to delete files only. Specifically I'm wanting to remove all images but am starting with all files first. Channel #test-images currently contains 2 messages, one with a .jpg image and one with just text. I've tried the following with no luck:

slack-cleaner2 --token xoxp-XXXX --channel test-images --as_user --file --perform
slack-cleaner2 --token xoxp-XXXX --channel test-images --as_user --file --types "*" --perform
slack-cleaner2 --token xoxp-XXXX --channel test-images --as_user --file --types snippets,images --perform
slack-cleaner2 --token xoxp-XXXX --channel test-images --as_user --file --types "*" --user "*" --perform

Each time I get:

start
collected channels [general, random, XXX, XXX, XXX, XXX, XXX, XXX, XXX, test-images]
start deleting: test-images
list all files(user=None, after=None, before=None, types=*, channel=XXXX
stop deleting: test-images: deleted: 0, errors: 0
summary: overall: deleted: 0, errors: 0

What am I missing?


pip show slack-cleaner2
Name: slack-cleaner2 Version: 3.2.2
pip --version
pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9)
python3 -V
Python 3.9.2

@dik23 dik23 added the question Further information is requested label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant