yarn cache clean --all

Category: Node.js & npm/yarn

yarn cache clean --all

Clear global and local yarn caches

Deletes both the project's local cache and the shared global cache under ~/.yarn, freeing disk space. Yarn 2+ mirrors every dependency there, so caches grow large. The next install simply re-downloads what it needs.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.