How it works
DevCleaner finds projects under your configured project roots (Settings → Folders) that have not been touched for longer than the Inactive after threshold (Settings → Folders → Project roots). In the dashboard:
- Unused Projects, candidates to archive (Pro)
- Archived Projects, breadcrumbs pointing at off-disk archives (restore free)
Hibernation is its own flow: it never rides the Clean Now button and never inflates Quick Clean totals.
Light vs full archive
| Mode | What stays in the archive | Best for |
|---|---|---|
| Light | Source, .git, lockfiles; strips node_modules, Rust/Cargo target/, Pods, .build, etc. | Maximum space savings; reinstall deps on restore |
| Full | Everything in the project folder | Offline restore with no reinstall step |
Choose the default with Include dependencies (full archive) in Settings → Folders → Project archives. You can override per archive.
Safety chain
- Build archive next to the project
- Verify integrity (
unzip -t/tar -tzf) and non-zero size - Checksum, move to destination, re-verify
- Write a
.devcleanerbreadcrumb sidecar - Only then remove the original folder
Any failure leaves the project on disk untouched. On macOS 1.17.0 the original folder follows Settings → General → Deletion. Under By risk (the default) and Always move to Trash it goes to the Trash. Always delete permanently deletes the original permanently. The confirm sheet says which of those will happen. When the original moves to the Trash, the result says “moved to Trash” and offers Empty Trash. That space is not counted as freed until the Trash is emptied.
Docker projects
For projects with docker-compose.yml or a Dockerfile, DevCleaner can capture the runtime environment:
- Compose volumes: snapshotted into the archive (requires Docker daemon at archive + restore)
- Light + Docker, images rebuilt via
docker compose buildon restore - Full + Docker, images saved with
docker savefor offline restore
Docker-only projects (compose/Dockerfile without git) are detected as archivable. Running containers must be stopped by you before archive.
Restore
Restore from the Archived Projects card, by double-clicking a .devcleaner breadcrumb, or via Preview restore (eye button) to see destination path, file count and top-level contents without downloading an iCloud-parked archive. You can also Reveal the archive in Finder from the archived-project row.
If the archive lives in iCloud and is only a placeholder, DevCleaner downloads it first (with a disk-space preflight), then extracts. Conflicts restore as ProjectName (restored), never overwrites an existing folder.
Dependency reinstall (polyglot)
After a light restore, DevCleaner offers one-click reinstall for every package manager it detects from lockfiles and markers:
| Ecosystem | Detected by | Command |
|---|---|---|
| pnpm | pnpm-lock.yaml | pnpm install |
| Yarn | yarn.lock | yarn install |
| Bun | bun.lockb | bun install |
| npm | package-lock.json / package.json | npm install |
| CocoaPods | Podfile | pod install |
| Cargo | Cargo.toml | cargo fetch |
| Swift PM | Package.swift | swift package resolve |
| Go | go.mod | go mod download |
| Composer | composer.json | composer install |
| Poetry / pip / pipenv | poetry.lock, requirements.txt, Pipfile | poetry install, pip install -r …, pipenv install |
| Bundler / Maven / Gradle | Gemfile, pom.xml, build.gradle* | bundle install, mvn install, ./gradlew build |
Commands run in your login shell ($SHELL -ilc) so nvm, Homebrew and other PATH tools work from a GUI app.
Batch archive (Pro)
Archive All in Unused Projects archives every listed project sequentially, with a confirmation showing count and total GB, a progress row, and skip-on-error behaviour.
FAQ
- Do I need Pro to restore a hibernated project?
- No. Restore is always free. Only archiving requires Pro.
- What is the difference between light and full archive?
- Light strips heavy artifacts like node_modules and Rust/Cargo target/ folders but keeps source and lockfiles. Full keeps everything for offline restore without reinstall.
- What if archiving fails?
- The original project folder stays untouched. DevCleaner verifies the archive before deleting anything.
