Skip to content

Examples

Morten Kristensen edited this page Feb 17, 2018 · 4 revisions

This page consists of examples on how to use Slacker.

Maintenance: Cleaning up files

For those without a premium workspace setup, the imposed restriction on storage space can be a hassle.

Before deleting any files it is recommended to do a "dry run" first:

% ./slacker.py -- files.delete -n
Gathering files to delete..
..
..
Gathered X files, Y MiB
Dry run: Not deleting any files!

Run the command again without -n to actually delete all files.

But that is usually not what is needed because some files are still useful; the newer ones. So to delete all files older than, say, 30 days:

% ./slacker.py -- files.delete --older-than 30
..
Gathered X files, Y MiB
Deleting: FILE (ID)
..
Deleted X files, Y MiB

Inviting all users to a channel

This isn't something that is possible directly in the Slack interface. TODO