How to delete old Xcode simulators you no longer need
Codemia Knowledge Hub ·
Delete old simulators from the Simulator's device manager, or from Terminal by finding the device UDID with xcrun simctl list devices and passing it to xcrun simctl delete. Old simulators clutter the device list and take up disk space.
Why remove unneeded simulators
Simulators pile up across projects and Xcode versions, which leads to:
- Clutter: relevant devices are hard to find in a long list.
- Slower startup: more devices mean more initialization time when launching Xcode or the Simulator.
- Storage: each simulator can use a significant amount of disk space.
Delete simulators in the Simulator app
- Open Simulator: launch the Xcode Simulator.
- Open the device manager: go to
Hardware > Devices > Manage Devices…. - Delete devices: the "Devices" tab lists all installed simulators. Select the ones to remove and click
Delete.
Delete simulators with xcrun simctl
- List devices (the output includes each device's identifier):
- Delete a device using its UDID from the list:
Script the cleanup
On teams or several machines, a script saves time:
The grep -oE step extracts just the UDID from each matching line. You can also run cleanup scripts like this in CI/CD pipelines (Jenkins or similar) after builds.
Clear DerivedData to free more space
DerivedData holds Xcode's build caches. Clearing it frees additional disk space:
Be careful: this deletes all build caches.
Commands at a glance
| Action | Command/Menu Navigation |
| List devices | xcrun simctl list devices |
| Delete a device | xcrun simctl delete <Device UDID> |
| Open Simulator Manager | Hardware > Devices > Manage Devices… |
| Clear DerivedData | rm -rf ~/Library/Developer/Xcode/DerivedData/* |
| Automate deletion (Script) | Shell script iterating over xcrun simctl list output |
Related reading
- Xcode stops working after set xcode-select -switch
- Xcode Storyboard warning Constraint referencing items turned off in current configuration. Turn off this constraint in the current configuration
- Xcode stuck at “Your application is being uploaded”
- Xcode stuck in Uploading package to the App Store stage while uploading
- Xcode suddenly stopped running project on hardware Could not launch xxx.app .. No such file..
- Xcode The private key for is not installed on this mac - distributing
- Xcode This app could not be installed at this time.
- Xcode Unit Testing with Cocoapods
.png&w=3840&q=75)
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free courseNo course covers this one yet
Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.
Build my courseData Structures & Algorithms practice on Codemia
Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.