Free your disk. Keep only what builds back

kamikaze finds the build outputs and dependency folders eating your drive across eleven kinds of project, and deletes the ones you pick. It refuses anything the next build or install cannot restore exactly.

Terminal showing kamikaze listing build folders, marking the recommended ones and deleting them

Scan, pick, delete

  1. Scan
    Point it at your projects folder. It walks every project and lists build outputs and dependency folders with their sizes.
    enter
  2. Pick
    Mark everything recommended, or move through the list and mark rows yourself. Locked rows cannot be marked.
    rspace
  3. Delete
    Confirm, and each safety check runs once more before the folders are removed. Your next build or install brings them back.
    dy

If it cannot come back exactly, it stays (locked)

Cleaning tools earn their bad reputation by deleting something you needed. kamikaze only lets you mark a folder when a reinstall or rebuild restores it exactly. When it is unsure, it locks, and every check runs again right before the delete.

Symlinks are never followed. Global caches are view only.

Read the full list of checks
  • (locked) No lockfile
    A node_modules or vendor with no lockfile could come back with different versions.
  • (locked) Lockfile older than the manifest
    npm and pnpm lockfiles are read, so a reinstall that would change versions is caught.
  • (locked) Tracked by git
    Folders holding files tracked by their own repo, or any repo around them, are never offered.
  • (locked) Changed in the last 10 minutes
    A dev server or build may still be using it.
  • (locked) Cannot be rebuilt
    A Rust target with no Cargo.toml, or a NestJS dist with no src, has nothing to restore it from.

[11] Ecosystems

Pick a category or leave it on All. Folders untouched for 30 days or more are marked (recommend)

  • Rust
    target/
  • Node.js
    node_modules/
  • Next.js
    .next/node_modules/
  • NestJS
    dist/node_modules/
  • Laravel
    vendor/node_modules/storage/framework/views
  • Python
    .venv/.pytest_cache/.mypy_cache/.ruff_cache/.tox/__pycache__/
  • Go
    vendor/
  • Flutter
    build/.dart_tool/
  • JVM
    build/.gradle/target/
  • Apple
    Pods/.build/
  • .NET
    obj/bin/ stays locked

One command, then kamikaze

Needs a Rust toolchain. On the first run it asks which folder holds your projects and remembers the answer.

cargo install --git https://github.com/amornnan19/kamikaze --locked --root ~/.local
kamikaze ~/code kamikaze -c next,laravel kamikaze --list --global kamikaze --update