Skip to content

cleanup

fialr cleanup <target> [options]

Cleanup operations. Runs dedup and validate in sequence. Dry-run by default. To apply changes, pass both --execute and --reviewed.


ArgumentDescription
targetDirectory to clean up (required)
OptionDescription
--executeApply changes (not just dry-run)
--reviewedConfirm that execution is approved (required with --execute)
--no-dedupSkip the deduplication phase
--no-validateSkip the validation phase
--output-dir PATHOutput directory for cleanup artifacts

cleanup runs two phases in sequence:

  1. Dedup — find exact and near-duplicate files, stage non-canonical copies
  2. Validate — verify file integrity against the database

Without --execute, cleanup reports what duplicates were found and what integrity issues exist. No files are modified.

With --execute --reviewed, dedup stages non-canonical duplicates to _dupes/ and validate reports integrity mismatches.

Use --no-dedup to skip deduplication (validate only). Use --no-validate to skip validation (dedup only).


Dry-run:

cleanup ~/Documents
DEDUP 847 files (1.2s)
VALIDATE 847 files (2.1s)
────────────────────────────────────────────────────────
files 847
dupes 14 (3 groups)
verified 833
mismatch 0
total 3.3s

Terminal window
# Dry-run cleanup
fialr cleanup ~/Documents
# Execute cleanup
fialr cleanup ~/Documents --execute --reviewed
# Dedup only (skip validation)
fialr cleanup ~/Documents --no-validate
# Validate only (skip dedup)
fialr cleanup ~/Documents --no-dedup

  • dedup — standalone deduplication
  • validate — standalone integrity verification
  • process — full pipeline: scan, classify, enrich, rename