All Guides

Is Xcode DerivedData Safe to Delete?

Build CachesTypical size: 5-50GB
Yes, Safe to Delete

Yes, DerivedData is safe to delete. It contains build intermediates that Xcode recreates.

Side effects: Your next build will be a full rebuild instead of incremental, taking longer.

What is ~/Library/Developer/Xcode/DerivedData?

DerivedData contains Xcode's build products, indexes, and logs. It's one of the largest space consumers on developer Macs. Deleting it is completely safe - Xcode will recreate everything on the next build.

Is it safe to delete?

Yes~/Library/Developer/Xcode/DerivedData is generally safe to delete. The data in this folder is temporary and will be recreated by the application when needed.

Before deleting, make sure:

  • You don't have any important unsaved work in the related application
  • You're not in the middle of a critical task that might need this cached data
  • You understand that initial load times may be slower after deletion

What happens after deletion?

Your next build will be a full rebuild instead of incremental, taking longer. The folder will be recreated automatically by the application when needed. This process is typically seamless but may take some time depending on the amount of data that needs to be regenerated.

How to delete it

Recommended

Use MacMop

MacMop finds this folder automatically and lets you delete it safely with one click.

Terminal

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

Warning: This command permanently deletes the folder. Double-check the path before running.

Finder

  1. Open Finder
  2. Press ⌘ + Shift + G (Go to Folder)
  3. Paste: ~/Library/Developer/Xcode/DerivedData
  4. Move the folder to Trash

MacMop scans all your hidden caches and tells you exactly what's safe to delete.