Apps
sccache
Distributed and local Rust and C/C++ builds use sccache to store compiled object outputs, compiler result artifacts, and metadata keyed from compiler inputs so repeated builds can skip recompilation. Over time that on-disk cache can grow to several gigabytes and may retain entries tied to older compiler versions, changed flags, or no-longer-used dependency states. Kudu removes sccache's local disk cache contents only, freeing space without touching source code, toolchains, accounts, or build configuration.
Why clean sccache?
- A long-lived cache keeps old object artifacts and result metadata for projects you no longer build, so disk usage climbs into multiple gigabytes and the only obvious symptom is unexpectedly low free space on the system drive
- Entries generated with an older rustc, clang, or MSVC toolchain stop matching after upgrades, causing a sudden drop in cache hit rate and noticeably longer incremental builds until fresh artifacts replace them
- Changed compiler flags, target triples, or environment inputs can leave the cache full of unusable objects, so builds still succeed but sccache reports frequent misses and compile times feel much slower than before
- Corrupted cache records or partial writes after an interrupted build can trigger repeated recompilation of the same files, making CI jobs or local rebuilds take longer even when sources barely changed
- Large shared caches on laptops and developer workstations increase filesystem churn during builds, which shows up as heavy disk activity and slower responsiveness while compiling
- After switching branches or retiring old dependencies, stale cached outputs remain on disk even though they will never be reused, so cleaning recovers space with the only tradeoff being slower next-time compiles
What gets cleaned
Cache paths Kudu targets
Windows
%LocalAppData%/Mozilla/sccache/cache |
macOS
~/Library/Caches/Mozilla.sccache |
Linux
~/.cache/sccache |
Frequently asked
Common questions about sccache
Related cleaners
Free & open source
Download Kudu and reclaim your disk space.
Available on Windows, macOS, and Linux. No account required, no feature gates, no telemetry without consent. All cleaning targets are open source and community-auditable.