| Crates.io | crab-clean |
| lib.rs | crab-clean |
| version | 0.1.1 |
| created_at | 2025-06-19 12:24:13.931057+00 |
| updated_at | 2025-06-20 11:05:49.685252+00 |
| description | A CLI tool to tidy your file system by finding and managing duplicate and unused files |
| homepage | https://github.com/adithya-adee/crab-clean |
| repository | https://github.com/adithya-adee/crab-clean |
| max_upload_size | |
| id | 1718296 |
| size | 52,755 |

Crab Clean CLI is a Rust‑powered command‑line tool that helps developers and everyday users quickly clean up unused, duplicate, and scattered files in any directory—automating smart grouping and safe deletion to keep your workspace lean and organized.
cargo install crab-clean
git clone https://github.com/adithya-adee/crab-clean.git
cd crab-clean
cargo install --path .
Download pre-compiled binaries from the Releases page.
# Dry run (preview only)
crabclean duplicate /path/to/directory --dry-run
# Interactive deletion
crabclean duplicate /path/to/directory
# Current directory
crabclean duplicate .
# Find files unused for 30 days (default)
crabclean unused /path/to/directory --dry-run
OR
crabclean unused /path/to/directory -n
# Find files unused for 60 days without interactive/automatic deletion
crabclean unused /path/to/directory --age 60 -n
# Interactive deletion
crabclean unused /path/to/directory --age 30
Tidy your file system by finding and managing duplicate and unused files
Usage: crabclean <COMMAND> <SOURCE_DIRECTORY> <flag>
Commands:
duplicate Find and manage duplicate files
unused Find and manage unused files
help Print this message or the help of the given subcommand(s)
Flag:
--dry-run / -n To just know details
without args You will be prompted to ask for delete (Press ctrl + c to exit the terminal , only if you don't want to delete)
Options:
-h, --help Print help
-V, --version Print version
Find and manage duplicate files
Usage: crabclean duplicate [OPTIONS] [PATH]
Arguments:
[PATH] Path to the directory to scan [default: .]
Options:
-n, --dry-run Perform a dry run without deleting files
-h, --help Print help
Find and manage unused files
Usage: crabclean unused [OPTIONS] [PATH]
Arguments:
[PATH] Path to the directory to scan [default: .]
Options:
-a, --age <AGE> Age in days for a file to be considered unused [default: 30]
-n, --dry-run Perform a dry run without deleting files
-h, --help Print help
# Find duplicates in Downloads folder (dry run)
crabclean duplicate ~/Downloads --dry-run
# Clean up unused files older than 90 days in project directory
crabclean unused ~/projects --age 90
# Interactive duplicate cleanup in current directory
crabclean duplicate .
--dry-run to preview changesContributions are welcome! Please see CONTRIBUTING.md for guidelines.
This project is licensed under either of
at your option.
See CHANGELOG.md for a list of changes in each version.