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, which is the project-global registry cache, is left untouched unless --mirror or --all is set.
Remove only cache entries older than seven days
Remove the registry mirror cache instead of the project cache
Remove both the project cache and the registry mirror
Examples#
Remove the cache of the current project
yarn cache clean
Remove the archives stored in the registry mirror
yarn cache clean --mirror
Remove both the project cache and the registry mirror
yarn cache clean --all
Remove only the cache entries older than seven days
yarn cache clean --old