/slack-delete-files

:bomb: mass delete files from Slack using JavaScript.

Primary LanguageJavaScript

slack-delete-files npm version Build Status

Mass delete files from Slack using JavaScript.

Running slack-delete-files on terminal

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)

Install

⚠️ Make sure you have Node.js 5+ installed.

$ npm install -g slack-delete-files

This installs it globally so you can use it from anywhere in your computer.

Usage

$ slack-delete-files

A Slack API token is required. Grab yours in Slack API docs!

Features
  • Can keep recent files, deleting only files older than 30 days.
  • Can keep pinned files.
Limitations
  • Cannot delete files sent privately.
  • Deletes up to 1000 files per execution.

License

MIT