Safe to Delete

Yarn Global Package Cache (Yarn Cache)

Quick Answer: Yarn v1 and Yarn Berry cache npm package zip archives locally. Clearing the global cache is safe.

Bottom Line: It is 100% safe to clear the Yarn global cache. Yarn saves downloaded package archives to avoid network requests on subsequent installs.


What is the Yarn Global Cache?

Located at ~/.yarn/berry/cache (Yarn 2+) or ~/Library/Caches/Yarn / %LocalAppData%\Yarn\Cache (Yarn v1), this directory stores compressed package archives.


Can You Delete Yarn Cache?

✅ Yes, safe to delete.

  • No project impact: Your local project node_modules or .yarn/cache remain active.

How to Clean Up Yarn Cache

yarn cache clean

Discussion

Loading authentication...

Related in developer

The AI Engineer's Model Disk Cleanup Guide: Hugging Face, Ollama & PyTorch

The ultimate 1,200-word field guide for AI developers and local LLM hobbyists to reclaim 200GB+ from Ollama, Hugging Face, PyTorch, and vLLM model weights.

Safe to Delete

Android Studio System Index Cache (AndroidStudio Cache)

Android Studio caches Gradle project indexes, VFS caches, and compiler artifacts. Invalidate and clear is safe.

Safe to Delete

Ansible Automation Temp & Fact Cache (~/.ansible/tmp)

Ansible stores temporary playbook execution modules and target host fact JSON caches in ~/.ansible/tmp. Clearing Ansible tmp is safe.

Safe to Delete
Back to all files