Is it safe to delete Yarn cache?

~/Library/Caches/Yarn · Safe to delete

What it is

A copy of every package Yarn has downloaded, so installs are faster and can work offline.

Can you delete it?

Yes, it is rebuilt automatically. Yarn downloads packages again when a project needs them. Your projects keep working.

How to clean it safely

  1. See the size: du -sh ~/Library/Caches/Yarn
  2. Run: yarn cache clean

How big is it on your Mac?

This read-only command prints its size and changes nothing:

 Terminal
du -sh ~/"Library/Caches/Yarn" 2>/dev/null

Step-by-step guide: Delete node_modules safely →

Questions

Is it safe to delete ~/Library/Caches/Yarn?

Yes, it is rebuilt automatically. Yarn downloads packages again when a project needs them. Your projects keep working.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac