What is the DerivedData folder on my Mac?

It belongs to Xcode. Here’s what’s inside and the right way to deal with it.

Short answer

DerivedData is Xcode’s build folder: compiled files and indexes for every project you’ve built. It’s safe to delete, and Xcode recreates it on the next build. Quit Xcode first.

Skip the manual steps. Tidy Mac finds this and every other hidden space hog on your Mac in under a minute.

Location: ~/Library/Developer/Xcode/DerivedData

What’s inside

  • One folder per project (name + hash)
  • ModuleCache.noindex
  • Index data
Our verdict: Safe. Your Mac or your apps recreate this automatically. Removing it won’t lose anything you made.

Clear it

rm -rf ~/Library/Developer/Xcode/DerivedData/*

Find every folder like this on your Mac

Tidy Mac’s Space Map shows every big folder at its real size, and Apps › Leftovers finds folders left by apps you already deleted.

Frequently asked questions

Can I delete DerivedData?

Safe: Your Mac or your apps recreate this automatically. Removing it won’t lose anything you made. DerivedData is Xcode’s build folder: compiled files and indexes for every project you’ve built. It’s safe to delete, and Xcode recreates it on the next build. Quit Xcode first.

Where is DerivedData on my Mac?

~/Library/Developer/Xcode/DerivedData. In Finder choose Go › Go to Folder and paste the path.

How big does DerivedData get?

Usually 5 – 80 GB.

Keep reading