Audience: End UserLast verified against repo: 2026-11-28
Clean Up Files Safely
Why blind deletion tools are dangerous, and how PkgSteward uses a 4-step Preview → Confirm flow with Windows Recycle Bin protection.Why disposition matters before you delete
Running rm -rf or generic cleanup scripts on the wrong directory can permanently destroy uncommitted source code in seconds. PkgSteward separates disposable dependency folders from irreplaceable project files before any deletion occurs:- Permanent deletion: Only node_modules folders and known build/cache directories (such as .next, dist, build, .turbo, coverage) are deleted permanently, because they can be recreated with install or build.
- Windows Recycle Bin protection: Whole project folders and individual project files are always sent to the Windows Recycle Bin. If Windows Recycle Bin fails for any reason, PkgSteward aborts the operation and never falls back to permanent deletion.
Complete a 4-step Preview → Confirm cleanup
You can clean up multiple folders from /cleanup or manage an individual project's file tree from /files?path=....01
Select the node_modules folders, cache directories, or project files you want to remove and click Preview.1. Preview: Select target folders or caches
Expected result: The API calculates item counts, risk levels, deletion method (Permanent vs Recycle Bin), and estimated disk space freed (excluding files still hardlinked to the pnpm store).
02
Inspect the preview list to confirm which items will delete permanently and which will move to the Windows Recycle Bin, then complete the confirmation step.2. Review & 3. Confirm: Verify the disposition summary
Expected result: The Delete action unlocks for your verified preview token.
03
Click Delete to run the operation.4. Delete: Execute and review the audit result
Expected result: PkgSteward reports the exact bytes freed and confirms that any project files were safely placed in the Windows Recycle Bin.
Last verified against repo: 2026-11-28 (
apps/web/README.md)View source doc on GitHub(opens in new tab)