Find files at or under (or over) a size threshold in a folder, then quarantine them to a dump folder or delete them outright - every removal previews as a dry-run first and quarantine batches can be undone.
Scan a folder and list files whose size falls under a max threshold and/or over a min threshold, in KB, without changing anything.
Inputs
Name
Type
Required / default
Values and notes
folder
path
required
max_kb
int
optional
min_kb
int
optional
recursive
bool
optional, default false
Outputs
Name
Type
Notes
scanned
int
matched
int
total_bytes
int
files
json
Remove small files
removeDestructive
Move every file at or under max_kb (KB) into a quarantine dump folder (default), or delete them outright with mode='delete'. Use --dry-run to preview; quarantine batches can be reversed with 'undo'.
Inputs
Name
Type
Required / default
Values and notes
folder
path
required
max_kb
int
required
recursive
bool
optional, default false
mode
enum
optional, default quarantine
quarantinedelete
dest
path
optional, default ""
Outputs
Name
Type
Notes
matched
int
removed
int
mode
string
dest
path
changes
json
Undo last quarantine
undoDestructive
Restore the files from the most recent quarantine batch for a folder, using the journal Small File Remover keeps. Batches removed with mode='delete' cannot be restored.