Skip to content

Unable to delete files #88

@dik23

Description

@dik23

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions