Skip to content
Storage Cleaner Expert
  • Features
  • AI
  • Contact
Download on App Store

On this page

  1. What DerivedData is
  2. Is it safe to delete?
  3. What’s inside, folder by folder
  4. Find build data for deleted projects
  5. How to delete it
  6. Xcode folders to keep
  7. Move it or keep it smaller
  8. In Storage Cleaner Expert
  9. FAQ

Xcode DerivedData: Is It Safe to Delete?

By Andrei Yakushau, who builds Storage Cleaner Expert · Published 30 November 2026

Yes, Xcode DerivedData is safe to delete. It holds build products, indexes and logs that Xcode generates from your source files, and Xcode makes them again on the next build. You lose time, not work: each project’s next build and indexing take longer. The folders next to it are a different matter, because Archives and simulators can hold things you can’t rebuild.

What Xcode DerivedData is and where it lives

DerivedData is the folder where Xcode keeps what it generates while it builds and indexes your projects. By default it’s at ~/Library/Developer/Xcode/DerivedData, shared by all your projects. Apple’s Xcode help describes it as project indexes, logs and build products, including intermediate build files, and notes that the folder is often large and can be re-created at any time from your source files.

To open it, choose Go › Go to Folder in Finder and enter ~/Library/Developer/Xcode/DerivedData. In Xcode, the path is shown under Xcode › Settings › Locations, with an arrow that opens it in Finder. If the folder isn’t at the default path, check that setting: it can point to a custom folder or to one next to each project.

Is it safe to delete Xcode DerivedData?

Yes, with Xcode quit. Nothing in DerivedData is the only copy of your work, so deleting it can’t lose source code, project settings or Git history. What you give up is time:

  • The next build of each project starts from scratch, without the compiled results Xcode had kept.
  • Xcode indexes each project again, so features that rely on the index, such as Open Quickly, take a while to catch up.
  • Build logs from earlier runs are gone.

Quit Xcode first, so it isn’t writing to the folder while you delete it.

What’s inside DerivedData, folder by folder

DerivedData holds one folder per project plus a few caches that all projects share. Each project folder is named after the project, followed by a string of letters, such as MyApp-abcdefghijklmnop. The shared ones end in .noindex or start with SDK. These descriptions come from the rules Storage Cleaner Expert uses when it suggests a folder.

FolderWhat it holdsWhat you lose if you delete it
<Project>-<letters>Build products, indexes and logs for one project.That project’s next build and indexing take longer.
ModuleCache.noindexClang and Swift modules Xcode compiled once and shares between all your projects.Every project’s next build recompiles the modules it uses.
CompilationCache.noindexResults Xcode’s compilation caching keeps so unchanged code isn’t compiled again. Clean Build Folder doesn’t empty it, so it only grows.Builds compile everything again the first time, then refill the cache.
SDKExplicitPrecompiledModulesSDK modules built ahead of time for builds that use explicit modules.The next build of each project precompiles them again.
SDKStatCaches.noindexLists of each SDK’s files, so builds find headers faster.Xcode recreates them on the next build.
SymbolCache.noindexSymbols the indexer and Open Quickly share between projects.Xcode rebuilds it while indexing.

To see which folders are largest, run this in Terminal. It only reads sizes:

du -sh ~/Library/Developer/Xcode/DerivedData/* 2>/dev/null | sort -h

How to find build data for projects you deleted

You don’t have to delete all of DerivedData to get most of the space back. Each project folder has an info.plist whose WorkspacePath entry names the project it was built from. If that project no longer exists, its build data is of no use to anyone, and it stays on disk until you delete it.

This loop prints each project’s path and whether it’s still there. It only reads:

for f in ~/Library/Developer/Xcode/DerivedData/*/info.plist; do
  p=$(plutil -extract WorkspacePath raw "$f" 2>/dev/null)
  [ -e "$p" ] && s=present || s=missing
  echo "$s  $p  ($(dirname "$f"))"
done

Folders marked missing are the safest to delete first. A project you moved also shows as missing, because the path changed; Xcode makes a new DerivedData folder for it the next time you build it.

How to delete DerivedData

Quit Xcode, then use one of these:

  • In Finder: open the folder as shown above, select the project folders or caches you want to remove, and move them to the Trash. To remove everything, select all the folder’s contents. Empty the Trash to get the space back.
  • In Terminal: rm -rf ~/Library/Developer/Xcode/DerivedData/* deletes everything in the folder at once. It skips the Trash, so there’s no undo; that’s acceptable here only because everything in it can be rebuilt.
  • For one project, from Xcode: Product › Clean Build Folder (Shift-Command-K) removes that project’s build products. It’s the lightest option when one project builds strangely, but it usually frees less space than deleting the project’s folder.

DerivedData comes back as soon as you build again. That’s normal.

Xcode folders to keep, or check first

DerivedData sits next to folders that look just as disposable but aren’t. Treat these differently:

FolderWhat it holdsWhat you lose
~/Library/Developer/Xcode/ArchivesApp builds you archived, with their debug symbols (dSYMs). They’re needed to re-export a build or symbolicate its crash reports.Those builds can’t be exported again, and their crash reports can’t be symbolicated. Archives can’t be rebuilt exactly from source, and App Store Connect doesn’t keep debug symbols for you. Delete old ones in Xcode’s Organizer, under Archives.
~/Library/Developer/CoreSimulator/DevicesSimulated devices, with the apps installed in them and their data.The simulators and any test data in them. Xcode can create new, empty ones.
~/Library/Developer/Xcode/iOS DeviceSupport and the other DeviceSupport foldersDebug symbols Xcode copied from devices you connected, one folder per system version.Xcode copies them again when a device with that version connects, which can take several minutes.
Simulator runtimesThe iOS, watchOS, tvOS and visionOS runtimes Xcode downloaded. macOS mounts them as disk images.Remove them in Xcode › Settings › Components, not in Finder.

Two other Xcode folders are safe to clear with Xcode quit: ~/Library/Caches/com.apple.dt.Xcode, web and download caches Xcode recreates, and ~/Library/Developer/Xcode/UserData/Previews, the simulators and builds SwiftUI previews use, which come back the next time previews run.

Move DerivedData or keep it from growing

  • Move it to another disk. In Xcode › Settings › Locations, set Derived Data to Custom and choose a folder. Builds on a slow external disk take longer.
  • Keep it next to each project. The Relative option puts a DerivedData folder inside each project folder, so deleting a project deletes its build data too. Apple recommends not backing it up, sending it to others or checking it into source control.
  • Give scripts and CI their own folder. xcodebuild -derivedDataPath <path> builds into the folder you name, which you can delete when the job ends.
  • Clear old projects now and then. Deleting the folders of projects you stopped building, as above, keeps the total down without slowing the project you work on.

How Storage Cleaner Expert lists Xcode DerivedData folders

Storage Cleaner Expert lists each project’s build data and each shared cache on its own, so the project you’re working on doesn’t hold back the others. It reads the info.plist in each project folder and shows the project it was built from. When that project no longer exists, the row is labelled (project deleted). A project built in the last 7 days is flagged as possibly in use.

A working copy of the app's inspector for one folder of Xcode build data. The Summary says it's likely safe to remove, the Evidence tab shows what the built-in rules observed on the Mac, and the Chat tab answers questions about the folder.

Atlas-gdnwtsqhzkrlvezxcvbnmasdfgh

~/Library/Developer/Xcode/DerivedData

11.4 GBon disk

Xcode build data for one project

Likely safe to remove

Build products, indexes and logs Xcode keeps for one project. Xcode rebuilds them on the next build. The project it was built from, “Atlas.xcodeproj”, no longer exists.

If removedThe next build and indexing of this project take longer.

To get it backRebuilt the next time you build the project.

UnmarkShow in Finder
Not sure?

Built-in rulesOn your Mac

How removableDisposable

A cache, log, temporary file or used installer that is recreated automatically if needed.

Must stayDisposable

Observed
  • Its info.plist names the project ~/Projects/atlas-ios/Atlas.xcodeproj, which no longer exists.
  • The newest change to anything inside was on 2026-08-13.
Check before removing

Quit Xcode first.

Ask about this folder. Answers use what the scan found here.

Ask about Atlas-gdnwtsqhzkrlvezxcvbnmasdfgh…

The app’s inspector for a DerivedData folder whose project was deleted, shown on demo data. The chat answers come from AI, which needs Pro and your permission.

Every row says what the folder is and what you lose, and the DerivedData rows remind you to quit Xcode first. Nothing is marked for you. Archives are listed one by one with a warning that they can’t be rebuilt, and simulator runtimes get an Open Xcode button instead of a checkbox, because only Xcode › Settings › Components removes them. Items you mark go to the Trash, and the app erases them only if you choose Empty Trash and confirm.

Scanning is free, and the free plan includes one cleanup every 24 hours. Storage Cleaner Expert needs macOS 15.6 or later and is on the Mac App Store. See how the Mac storage cleaner works, read what System Data on a Mac counts, where Xcode data often ends up, or see every way to free up disk space on a Mac.

FAQ

Will deleting DerivedData delete my project or code?

No. DerivedData holds what Xcode generates from your project: build products, indexes and logs. Your source files, project file and Git history live in the project folder, which deleting DerivedData doesn’t touch.

Why does DerivedData come back after I delete it?

Xcode recreates it the next time you build or open a project. That’s expected. To keep it from growing large again, delete the folders of projects you no longer build now and then.

Is Clean Build Folder the same as deleting DerivedData?

No. Product › Clean Build Folder removes the build products of the project you have open. It leaves other projects’ folders alone, and it doesn’t empty the shared CompilationCache.noindex folder.

Should I delete Xcode Archives too?

Only archives of builds you’ll never need again. An archive holds a build’s debug symbols, which you need to symbolicate its crash reports, and it can’t be rebuilt exactly from source.

Storage Cleaner Expert for Mac. Requires macOS 15.6 or later.

Mac App StoreGuidesPrivacy PolicyTerms of UseContact

© 2026 Storage Cleaner Expert. Mac, macOS and Mac App Store are trademarks of Apple Inc. This app isn't made or endorsed by Apple.