Mass delete files from Slack using JavaScript.
Because Slack comes with limited file storage and there's no way to bulk delete files using the web interface in order to free up space. (Source)
$ npx slack-delete-files
This installs it globally so you can use it from anywhere in your computer.
$ slack-delete-files
A Slack API token is required. Grab yours in Slack API docs!
- Can keep recent files, deleting only files older than 30 days.
- Can keep pinned files.
- Cannot delete files sent privately.
- Deletes up to 1000 files per execution.
MIT