·Updated ·8 min read

Xcode DerivedData: Is It Safe to Delete, and How

DerivedData is a rebuildable build cache. Deleting it is safe; your next build is slower until it regenerates.

DerivedData is rebuildable — often 20–50 GB before you notice.

Xcode is often the hungriest app on a developer Mac. DerivedData alone can exceed 20–50 GB.

Deleting it does not touch your source code. The next build reindexes and recompiles until the cache is warm again.

Pair DerivedData cleanup with DeviceSupport, simulators and Archives when Storage still will not move.

Is DerivedData safe to delete?

Yes. It stores intermediate build products and indexes. Source code in your project folders is untouched.

DerivedData sits with other developer caches — safe to wipe, costly only in rebuild time.

Three ways to clear it

  1. Xcode → Settings → Locations → Derived Data → arrow → delete folders.
  2. Delete ~/Library/Developer/Xcode/DerivedData in Finder (quit Xcode first).
  3. Surface it in DoomDisk junk scan and move to Safe Bin.
Terminal (optional)
rm -rf ~/Library/Developer/Xcode/DerivedData/*

Other Xcode folders that grow

PathNotes
~/Library/Developer/Xcode/ArchivesOld archives — keep what you need for App Store
~/Library/Developer/Xcode/iOS DeviceSupportSymbols per iOS version
~/Library/Developer/CoreSimulatorSimulator runtimes and data
~/Library/Caches/com.apple.dt.XcodeXcode caches

FAQ

Will deleting DerivedData break my project?

No. The next build is slower until indexes rebuild.

Can I delete only one project's DerivedData?

Yes. Inside DerivedData, folders are named after projects — remove only the ones you recognize.

Simulators vs DerivedData?

Different folders. Simulators can be larger; manage them in Xcode → Settings → Platforms / Components.