Open jamesbchz opened 4 years ago
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
slack-cleaner --token <mytoken> --file --perform --log --rate 1
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': ''}
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
I can't delete any files. This is the command I'm using.
slack-cleaner --token <mytoken> --file --perform --log --rate 1
have also triedslack-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: