SafeDisk AI

Can I Delete Xcode Caches?

Usually yes for regenerable build caches, but not every large Xcode folder is the same. Separate safe cache from simulators, archives, and device support before deleting.

Free Mac scan

Run the free Mac scan before deleting.

The Mac scan reads storage metadata locally, then shows the largest visible buckets and the files that need an AI delete / confirm / protect judgment.

Add command output optional

Free trial step. We reply first with a delete / confirm / protect judgment or one read-only detail we still need.

Download free Mac scan See sample result Ask AI about one file

Short answer

You can usually delete Xcode build cache and DerivedData after closing Xcode. The next build may be slower, but Xcode can recreate those files. Be more careful with archives, simulator data, and device support folders because they may affect testing, debugging, or old app releases.

Usually safe after closing Xcode

Review before deleting

Read-only checks

du -sh ~/Library/Developer/Xcode/*
du -sh ~/Library/Developer/CoreSimulator/*
du -sh ~/Library/Developer/Xcode/Archives/*

Safer deletion judgment

  1. Close Xcode and simulators.
  2. Check folder sizes first.
  3. Delete DerivedData/build cache first.
  4. Move confirm-first folders to Trash instead of permanent deletion.
  5. Open active projects and simulator targets before emptying Trash.

Want a risk-ranked Xcode cleanup report?

Start with the free SafeDisk Mac scan. If deletion risk is still unclear, send one request for the free SafeDisk AI deletion trial next step.

Download SafeDisk Lite from the scanner page, then run the local scan: Download free Mac scan.

Free AI deletion trial

Still full after the SafeDisk Lite scan?

Start with the SafeDisk Lite scan. If the scan still leaves unclear delete / confirm / protect decisions, send one request for the free SafeDisk AI deletion trial next step.

Download free Mac scan
Add output optional

Start with email. Output can follow after the first reply.