Apps

pnpm Unused Packages

pnpm keeps a global content-addressable store of downloaded package tarballs, unpacked package files, metadata, and side-effect build artifacts so multiple projects can hard-link or reuse the same dependency contents without downloading them again. Over time, that store accumulates packages no current project references, especially after branch changes, lockfile updates, and dependency removals. Kudu removes unreferenced pnpm store entries and related stale cache data with the equivalent of a safe store prune, leaving active project dependencies, lockfiles, settings, accounts, and credentials untouched.

Why clean pnpm Unused Packages?

  • Old dependency versions remain in pnpm's content-addressable store after upgrades, so disk usage keeps growing even though your projects no longer reference them and you notice tens of gigabytes under pnpm store folders
  • Removed packages from abandoned test projects still occupy store space, which makes backups, antivirus scans, and disk indexing take longer than expected on developer machines
  • Stale side-effect build artifacts for native modules can survive after toolchain or OS updates, leading to confusing rebuild behavior where installs seem to reuse old outputs before a clean reinstall fixes it
  • A store filled with years of unreferenced package contents makes it harder to tell what is actually in use, and users often only notice when a low-disk-space warning appears during install or CI cache restore
  • Corrupted or partially downloaded tarballs left in cache directories can trigger repeated integrity or extraction errors, and pruning unused entries reduces the amount of bad historical data pnpm can trip over
  • Large pnpm cache directories increase the size of copied home folders and container layers, so moving to a new machine or rebuilding dev environments takes longer than the current projects really require
What gets cleaned

Cache paths Kudu targets

Windows

%LocalAppData%/pnpm/store
%LocalAppData%/pnpm-cache
%LocalAppData%/pnpm-store
~/.pnpm-store

macOS

~/Library/pnpm/store

Linux

~/.local/share/pnpm/store
Frequently asked

Common questions about pnpm Unused Packages

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.