Skip to main content
The toolkit clean command group helps you reclaim gigabytes of disk space by locating and removing dependency folders that accumulate across your projects. It exposes two subcommands: scan to recursively discover node_modules directories and Python virtual environments (.venv, venv, env, conda) under a given path and report how much space you can recover, and purge to actually delete those folders — with a mandatory dry-run mode so you can always preview what will be removed before committing.

toolkit clean scan

Recursively search a directory for node_modules folders and Python virtual environments. For each target found, the command reports its type, size on disk, whether it is orphaned (no parent project file detected), and the total reclaimable space across all targets. Syntax
Arguments Options Examples
JSON output When you pass --json, the command writes a structured summary to stdout:

toolkit clean purge

Delete the node_modules directories and Python virtual environments discovered under the target path. Use --dry-run to simulate the operation and see exactly how much space would be freed without touching any files. Syntax
Arguments Options Examples
JSON output When you pass --json, the command writes a structured result to stdout:
Always run toolkit clean purge --dry-run before the actual purge. The dry-run output shows you every path that will be deleted and the exact space that will be recovered, so there are no surprises.
Purge deletes files permanently. There is no undo. Make sure you have reinstalled or no longer need the scanned dependency folders before running without --dry-run.