slack-delete-files
slack-delete-files copied to clipboard
cant_delete_file
I got an error while deleting files. I have bash script that run slack-delete-files multiple times with different user tokens (Legacy tokens), and the example response is like below:
There are no files older than 30 days to delete.
There are no files older than 30 days to delete.
Deleting 116 file(s)...
Error 'cant_delete_file' while deleting file.
Error 'cant_delete_file' while deleting file.
Error 'cant_delete_file' while deleting file.
Error 'cant_delete_file' while deleting file.
Error 'cant_delete_file' while deleting file.
...
It keep spamming Error 'cant_delete_file' while deleting file.
message.
if you get the 'cant_delete_files' message, I think you don't have the correct permissions. Are you a workspace admin?