DiskBroom › What it cleans › How to delete Xcode DerivedData safely
~/Library/Developer/Xcode/DerivedData
DerivedData is Xcode's scratch space: compiled build products, indexes, module caches, and logs for every project you've opened. Xcode rebuilds all of it from source the next time you build — none of your code lives here.
Commonly 2–20 GB; machines that touch many projects accumulate 50 GB or more. A single large project's subfolder can pass 5 GB on its own.
Nothing is lost. Your next build takes longer (a full rebuild and re-index), and that's the entire cost. This is the single most-deleted folder in Mac development for a reason.
Safe. Rebuilt automatically from your source code on the next build. No unique data ever lives here.
Prefer not to do this by hand every time? DiskBroom scans this location (and every other one on its published list), shows the size, rates the risk with the same shape you see above, and asks before anything moves — everything goes to the Trash, never past it. Scanning is free forever.
Something missing, or wrong in this guide? Request a feature · Report a problem