Skip to content

yarn cache clean

remove the shared cache files

Terminal window
yarn cache clean

Remove all the local archives :

Terminal window
yarn cache clean

Remove all the archives stored in the ~/.yarn directory :

Terminal window
yarn cache clean --mirror

This command will remove all the files from the cache.

DefinitionDescription

—mirror

Remove the global cache files instead of the local cache files

—all

Remove both the global cache files and the local cache files of the current project