Xcode
Simulator
iOS Development
Device Management
Tutorial

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:

  1. Clutter: relevant devices are hard to find in a long list.
  2. Slower startup: more devices mean more initialization time when launching Xcode or the Simulator.
  3. Storage: each simulator can use a significant amount of disk space.

Delete simulators in the Simulator app

  1. Open Simulator: launch the Xcode Simulator.
  2. Open the device manager: go to Hardware > Devices > Manage Devices….
  3. Delete devices: the "Devices" tab lists all installed simulators. Select the ones to remove and click Delete.

Delete simulators with xcrun simctl

  1. List devices (the output includes each device's identifier):
 
   xcrun simctl list devices
  1. Delete a device using its UDID from the list:
 
   xcrun simctl delete <Device UDID>

Script the cleanup

On teams or several machines, a script saves time:

bash
1   #!/bin/bash
2   # List all devices
3   xcrun simctl list devices | grep -E 'unavailable|unneeded' | grep -oE '[A-F0-9]{8}-([A-F0-9]{4}-){3}[A-F0-9]{12}' | while read -r id ; do
4     echo "Deleting Simulator with UDID: $id"
5     xcrun simctl delete "$id"
6   done

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:

 
   cd ~/Library/Developer/Xcode/DerivedData
bash
   rm -rf *

Be careful: this deletes all build caches.

Commands at a glance

ActionCommand/Menu Navigation
List devicesxcrun simctl list devices
Delete a devicexcrun simctl delete <Device UDID>
Open Simulator ManagerHardware > Devices > Manage Devices…
Clear DerivedDatarm -rf &#126;/Library/Developer/Xcode/DerivedData/*
Automate deletion (Script)Shell script iterating over xcrun simctl list output

Free course
Beginner
7 lessons
2 hours
Tackling System Design Interview Problems

A short course that equips you with the skills to approach system design interviews methodically.

Start the free course
Basis Lab
No 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 course
Data 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.

Practice algorithms