To delete old Xcode simulators, quit Simulator and run xcrun simctl delete unavailable in Terminal; it removes every simulator device whose runtime is no longer installed. Simulator runtimes, the large OS images the devices boot from, are removed separately in Xcode › Settings › Components or with xcrun simctl runtime delete. Finally, ~/Library/Developer/CoreSimulator/Caches can be cleared at any time with Simulator closed.
These are three different things that all show up as "CoreSimulator taking up space", so it helps to know which is which before deleting anything.
Devices, runtimes and caches
Simulator devices are the individual iPhone 16, iPad Air and similar entries you pick as a run destination. Each one has its own folder in ~/Library/Developer/CoreSimulator/Devices, named by a UDID, containing that device's data: installed apps, their documents, keychain, photos and settings. A device you used heavily for testing can grow large because of the app data inside it.
Runtimes are the operating system images, such as iOS 18.1 or watchOS 11, that devices run. Current versions of Xcode download them separately from Xcode itself and the system manages where they are stored. One runtime is shared by every device of that OS version.
Caches in ~/Library/Developer/CoreSimulator/Caches hold things like dyld shared caches generated for runtimes. They are rebuilt when needed.
When you upgrade Xcode and remove an old runtime, the devices that used it stay on disk but become "unavailable": Xcode cannot boot them, yet their data folders remain. That is the most common source of wasted space here.
Step 1: see what you have
# How big is CoreSimulator overall, and its parts
du -sh ~/Library/Developer/CoreSimulator
du -sh ~/Library/Developer/CoreSimulator/Devices ~/Library/Developer/CoreSimulator/Caches
# All simulator devices, grouped by runtime, including unavailable ones
xcrun simctl list devices
# Installed runtimes, with identifiers and sizes
xcrun simctl runtime list
In xcrun simctl list devices, devices whose runtime is gone are listed under a heading that says unavailable, often with a note such as "runtime profile not found". Those are safe to remove.
To find which individual devices hold the most data:
du -sh ~/Library/Developer/CoreSimulator/Devices/* 2>/dev/null | sort -h | tail -n 10
Match a UDID from that output to a device name with xcrun simctl list devices | grep <UDID>, replacing the placeholder with the folder name.
Step 2: remove unavailable simulators
Quit Simulator first. Then:
xcrun simctl shutdown all
xcrun simctl delete unavailable
The first line makes sure no simulator is still booted in the background. The second deletes every unavailable device and its data folder. It prints nothing when it succeeds. Run xcrun simctl list devices again to confirm the unavailable section is gone.
This is exactly what Xcode itself does when it cleans up after an upgrade, so there is no risk to the devices you still use.
Step 3: remove simulators you no longer need
Available devices you never use can go too. In Xcode, open Window › Devices and Simulators, click Simulators, select a device, and press Delete (or right-click and choose Delete). From Terminal:
# Delete one device by its UDID
xcrun simctl delete 1A2B3C4D-0000-0000-0000-000000000000
If you want to keep the device but throw away the apps and data inside it, erase it instead. This resets the device to a clean state without removing it from the destination list:
xcrun simctl erase 1A2B3C4D-0000-0000-0000-000000000000
# Or reset every simulator at once (Simulator must be shut down)
xcrun simctl erase all
Erasing is the gentler choice if your test plans refer to specific device names.
Step 4: delete old runtimes
Runtimes are usually the largest items, so this step tends to free the most space. Removing one means you can no longer run on that OS version in the simulator until you download it again.
In Xcode
- Open Xcode › Settings.
- Click Components. Older Xcode versions call this tab Platforms.
- Select a runtime you no longer test against and click the minus button, or right-click and choose Delete.
Names can shift between Xcode versions, but the runtimes are always listed with their OS version and size.
In Terminal
# List runtimes and copy the identifier of the one to remove
xcrun simctl runtime list
# Delete it
xcrun simctl runtime delete <identifier>
Replace <identifier> with the value shown in the list. Deleting a runtime makes any devices that used it unavailable, so run xcrun simctl delete unavailable again afterwards.
Keep at least one runtime for the minimum OS your app supports and one for the current release. Anything in between is a judgement call based on the bugs you are chasing.
Step 5: clear CoreSimulator caches
With Simulator closed, the caches folder can be emptied:
du -sh ~/Library/Developer/CoreSimulator/Caches
rm -rf ~/Library/Developer/CoreSimulator/Caches/*
This deletes immediately, without the Trash. If you prefer Finder, press Shift-Command-G, paste ~/Library/Developer/CoreSimulator/Caches, select the contents and choose File › Move to Trash. The first simulator launch afterwards takes a little longer while the cache is regenerated.
What not to do
Do not delete the whole ~/Library/Developer/CoreSimulator folder or the Devices folder by hand while Xcode or Simulator is running. The simulator service keeps a device set file in that folder, and pulling it out from under a running service leads to confusing errors until you restart. Use simctl for devices and runtimes, and reserve manual deletion for the Caches folder.
Android emulators are a separate system. They live in ~/.android/avd and should be removed from Android Studio's Device Manager; see clearing the Gradle cache on Mac for the rest of the Android toolchain.
How CleanLoupe does it
The Developer group in CleanLoupe's Cleanup module handles two parts of this:
- Unavailable simulators: listed with their size and labelled Safe. CleanLoupe removes them with
xcrun simctl, the way Xcode does, rather than deleting folders directly, so the simulator service stays consistent. - Simulator caches in
~/Library/Developer/CoreSimulator/Caches: Safe, moved to the Trash and recorded in History, where Put Back restores them until you empty the Trash.
It also lists SwiftUI preview data in ~/Library/Developer/Xcode/UserData/Previews, labelled Safe, which is another simulator-backed folder that grows with use.
What it does not do: CleanLoupe does not remove simulator runtimes, and it does not delete or erase simulators that are still available. Use Xcode's Components settings or xcrun simctl runtime delete for runtimes, and Step 3 for devices you have stopped using. It does not touch Android emulators either. The app is free, with no subscription or account.
The other two folders that usually grow next to CoreSimulator are build products and device symbols. The guides on deleting Xcode DerivedData and deleting old iOS DeviceSupport folders cover them, and freeing up disk space on a developer Mac maps everything else.
FAQ
Is it safe to run xcrun simctl delete unavailable?
Yes. It only removes simulator devices whose runtime is no longer installed, which Xcode cannot boot anyway. Devices you can still select as a run destination are not touched. Quit Simulator before running it.
Why is CoreSimulator taking up so much space?
Usually because of leftover devices from old runtimes, devices full of test app data, and installed runtimes you no longer use. Run the du -sh and xcrun simctl runtime list commands above to see which of the three it is on your Mac.
How do I delete simulator runtimes?
Open Xcode › Settings › Components (Platforms in older Xcode), select the runtime and delete it. In Terminal, find its identifier with xcrun simctl runtime list and pass it to xcrun simctl runtime delete. You can download it again from the same pane later.
What is the difference between erasing and deleting a simulator?
Erasing (xcrun simctl erase) wipes apps and data but keeps the device in your list. Deleting removes the device entirely. Erase when you want a clean device with the same name, delete when you no longer need it.
To clear unavailable simulators and their caches from a list, download CleanLoupe.