yarn cache clean — Yarn CLI reference

Remove cache files

Docs/Reference/CLI/cache/clean

yarn cache clean

Remove cache files

yarn cache clean

By default this command removes only the per-project cache. The mirror (the project-global registry cache) is left untouched unless --mirror or --all is set.

#--oldboolean

Clear cache entries older than 7 days

#--mirrorboolean

Also remove the registry mirror cache

#--allboolean

Remove both the local cache and the mirror