Skip to content
Black Friday · 25% off · Lifetime Pro for $5.99 $7.99Ends in …Code BLACKFRI25

Delete Old Xcode Versions & Archives on Mac

Multiple Xcode.app installs and years of Archives can cost 50+ GB. Keep one active toolchain and trim the rest.

Developer GuideBy Ojas PalorkarUpdated November 24, 20266 min readTested on macOS 15.1, Xcode 16.1

Quick answer

Switch with sudo xcode-select -s, trash unused Xcode apps in /Applications, then purge old folders in ~/Library/Developer/Xcode/Archives.

Where the space goes

/Applications/Xcode*.appsudo xcode-select -s /Applications/Xcode.app
15–40 GB eachIf unused
~/Library/Developer/Xcode/Archivesopen ~/Library/Developer/Xcode/Archives
5–50 GBReview dates
Typical sizes on a 0 to 60 GB scale. Your disk will differ.

Step 1: Point CLI tools at the active Xcode

sudo xcode-select -s /Applications/Xcode.app

Step 2: Remove duplicate Xcode.app bundles

Drag old Xcode or Xcode-beta apps to Trash. Empty Trash after confirming builds work with the remaining version.

Step 3: Clean Archives folder

open ~/Library/Developer/Xcode/Archives

FAQ

Is it safe to delete old Xcode.app bundles?

Yes if you only need one active Xcode. Keep the version matching your App Store / TestFlight requirements; move others to Trash.

Where are Xcode archives stored?

~/Library/Developer/Xcode/Archives — old distribution builds with dSYMs can be many gigabytes each.

Will deleting old Xcode remove simulators?

Removing an old Xcode.app frees the app itself; simulator runtimes may remain until you run simctl delete unavailable or remove runtimes in Xcode settings.

Run this cleanup in SpaceWise

Same targets, Recovery Bin rollback, no Terminal required. Free tier included.

Download for Mac