I found 21 GB of build folders hiding inside my projects, including ones nested in other projects

rust dev.to

My laptop ran out of space again. Not from photos or videos. From build output. A target/ in every Rust crate. A node_modules/ in every web project. A build/ and .dart_tool/ in every Flutter app. None of it matters, and all of it comes back the next time I build. One scan of my code folder found 21.5 GB across 8 projects. The bash script that missed half of it For a while I used a small script. Walk the code folder, find a project marker (Cargo.toml, pubspec.yaml, package.json), r

Read Full Tutorial open_in_new
arrow_back Back to Tutorials