Skip to main content

yarn cache clean

Remove the shared cache files.

Usage

$ yarn cache clean

Examples

Remove all the local archives :

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

yarn cache clean --mirror

Details

This command will remove all the files from the cache.

Options

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