yarn cache — Yarn CLI reference

Remove cache files

Docs/Reference/CLI/cache

yarn cache

Remove cache files

yarn cache

This is a shorthand for yarn cache clear when used with --clear or --clean.

#--clean, -c, --clearboolean

Run the cache cleanup operation

#--oldboolean

Remove only cache entries older than seven days

#--mirrorboolean

Remove the registry mirror cache instead of the project cache

#--allboolean

Remove both the project cache and the registry mirror