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

Failed to delete (cant_delete_file) #89

Open
jamesbchz opened this issue Jun 21, 2020 · 1 comment
Open

Failed to delete (cant_delete_file) #89

jamesbchz opened this issue Jun 21, 2020 · 1 comment

Comments

@jamesbchz
Copy link

jamesbchz commented Jun 21, 2020

I can't delete any files.
This is the command I'm using.

slack-cleaner --token <mytoken> --file --perform --log --rate 1
have also tried
slack-cleaner --token <mytoken> --file --user "*" --perform --log --rate 1

I am trying to delete every file that I possibly can.

These are the permissions on my slack bot app:
channels:history
channels:manage
channels:read
chat:write
files:read
files:write
groups:history
groups:read
groups:write
im:history
im:read
im:write
incoming-webhook
mpim:history
mpim:read
mpim:write
users:read

This is what shows in terminal:

Failed to delete (cant_delete_file) ->
{   'channels': ['CLUHYR6TG'],
    'comments_count': 0,
    'created': 1592486274,
    'display_as_bot': False,
    'editable': False,
    'external_type': '',
    'filetype': 'png',
    'groups': [],
    'id': 'F015NALG1JP',
    'ims': [],
    'is_external': False,
    'is_public': True,
    'mimetype': 'image/png',
    'mode': 'hosted',
    'name': 'image.png',
    'original_h': 160,
    'original_w': 363,
    'permalink': 'https://imagenet-tc.slack.com/files/ULKFXRMGR/F015NALG1JP/image.png',
    'permalink_public': 'https://slack-files.com/TLKAUGC1F-F015NALG1JP-93bbf5ad49',
    'pretty_type': 'PNG',
    'public_url_shared': False,
    'size': 13500,
    'thumb_160': 'https://files.slack.com/files-tmb/TLKAUGC1F-F015NALG1JP-443d63816d/image_160.png',
    'thumb_360': 'https://files.slack.com/files-tmb/TLKAUGC1F-F015NALG1JP-443d63816d/image_360.png',
    'thumb_360_h': 159,
    'thumb_360_w': 360,
    'thumb_64': 'https://files.slack.com/files-tmb/TLKAUGC1F-F015NALG1JP-443d63816d/image_64.png',
    'thumb_80': 'https://files.slack.com/files-tmb/TLKAUGC1F-F015NALG1JP-443d63816d/image_80.png',
    'thumb_tiny': 'AwAVADC6WIBJzwOaYbleMbqnP4fjSEAdkp3EQ/aFx1anRyeZnbnj3qTj/Ypyge34UXQajPm/yaPm75/OpMUYpDExzn+lDDPOaWg0AMx7/pS9O1LSUAGfajPtRRQB/9k=',
    'timestamp': 1592486274,
    'title': 'image.png',
    'url_private': 'https://files.slack.com/files-pri/TLKAUGC1F-F015NALG1JP/image.png',
    'url_private_download': 'https://files.slack.com/files-pri/TLKAUGC1F-F015NALG1JP/download/image.png',
    'user': 'ULKFXRMGR',
    'username': ''}
@sgratzl
Copy link

sgratzl commented Jul 10, 2020

can you try my latest maintained version at https://github.com/sgratzl/slack-cleaner since this one isn't maintained anymore and I also took over the published pypi version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants