Delete unreferenced packages from the global store.
Section: Store and Cache
Prune unreferenced packages from store
bash
bash
pnpm store pruneExplanation
Delete unreferenced packages from the global store.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Store and Cache
Show modified packages in store
Check whether packages in the store were modified.
Show package metadata cache path
Print the path of pnpm's metadata cache.
Delete package metadata cache entries
Clear package metadata cache entries.