Xcode simulators: is it safe to delete?
Each folder is one simulator device created by Xcode, with the apps installed in it and their data.
- Where it lives
~/Library/Developer/CoreSimulator/Devices/*
- Risk
- Review. Safe in many cases, but only you know if you still need it. Never preselected.
- Comes back on its own
- No
- If you delete it
- Deleting a simulator deletes the apps installed in it and all their data, which cannot be recreated.
- What SPACE256 does
- Shows what it is and how big it is. It does not delete it.
What it is
Each folder here is one simulated iPhone, iPad, Apple Watch, Apple TV or Vision Pro created by Xcode. It holds that device’s file system: the apps you ran in it and all of their data, from documents to databases to keychain items.
Why it grows
Xcode creates a set of simulators for every runtime you install, and each one grows as you run apps in it. Simulators for runtimes you removed stay behind as “unavailable” devices.
When to clear it
Simulators you no longer run, and unavailable ones left from old runtimes, are good candidates. Xcode’s Window › Devices and Simulators lists them.
When to keep it
Keep any simulator whose app data you rely on, for example a test account or a populated database you set up by hand. SPACE256 shows simulators and their size but does not delete them, because their data cannot be recreated.
Questions
Can I just recreate a simulator later?
You can create a new one in seconds, but not the old one's contents. The apps installed in it, their documents, databases and settings are gone with it.
What is the safest way to free simulator space?
Remove simulators whose runtime is no longer installed with `xcrun simctl delete unavailable`, and delete others from Xcode's Devices and Simulators window when you know their data doesn't matter.