slack-cleaner
slack-cleaner copied to clipboard
Getting "Failed to delete ->" on a lot of images...
Getting this on A LOT of files.... I ran the following:
slack-cleaner --token xxxxxxxxxxxxxxx --file --types snippets,images
Failed to delete ->
{ 'channels': ['CAEABN55M'],
'comments_count': 0,
'created': 1529417675,
'display_as_bot': False,
'editable': False,
'external_type': '',
'filetype': 'jpg',
'groups': [],
'id': 'FB9JWMTL1',
'image_exif_rotation': 1,
'ims': [],
'is_external': False,
'is_public': True,
'mimetype': 'image/jpeg',
'mode': 'hosted',
'name': 'Image uploaded from iOS.jpg',
'original_h': 5079,
'original_w': 3726,
'permalink': 'https://dfspowerhour.slack.com/files/U7Y8BL5G9/FB9JWMTL1/image_uploaded_from_ios.jpg',
'permalink_public': 'https://slack-files.com/T50LX5FEF-FB9JWMTL1-082e15034f',
'pretty_type': 'JPEG',
'public_url_shared': False,
'size': 672210,
'thumb_1024': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_1024.jpg',
'thumb_1024_h': 1024,
'thumb_1024_w': 751,
'thumb_160': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_160.jpg',
'thumb_360': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_360.jpg',
'thumb_360_h': 360,
'thumb_360_w': 264,
'thumb_480': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_480.jpg',
'thumb_480_h': 480,
'thumb_480_w': 352,
'thumb_64': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_64.jpg',
'thumb_720': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_720.jpg',
'thumb_720_h': 720,
'thumb_720_w': 528,
'thumb_80': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_80.jpg',
'thumb_800': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_800.jpg',
'thumb_800_h': 1090,
'thumb_800_w': 800,
'thumb_960': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_960.jpg',
'thumb_960_h': 960,
'thumb_960_w': 704,
'timestamp': 1529417675,
'title': 'Slack for iOS Upload',
'url_private': 'https://files.slack.com/files-pri/T50LX5FEF-FB9JWMTL1/image_uploaded_from_ios.jpg',
'url_private_download': 'https://files.slack.com/files-pri/T50LX5FEF-FB9JWMTL1/download/image_uploaded_from_ios.jpg',
'user': 'U7Y8BL5G9',
'username': ''}
I have the same issue.
It is probably the rate limit problem, use --rate 1 as parameter. It will be a lot slower, but a lot more efficient.
I actually ended up figuring out that the api was raising an error along the lines of “too many requests for this url”
Changing the rate will probably fix it. Thanks dude
Same issue, --rate 1 wont fix it.