Skip to content

simulator_erase

Erase all content and settings from a simulator, restoring it to a clean factory state. This removes all installed apps, user data, accounts, and custom settings while keeping the simulator device itself. It is the equivalent of “Erase All Content and Settings” on a physical iOS device.

ParameterTypeRequiredDefaultDescription
deviceIdstringYesThe UDID of the simulator to erase. Use simulator_list to find the UDID.

“Reset my iPhone 16 Pro simulator to a clean state”

{
"deviceId": "F3A1B2C3-D4E5-6789-ABCD-EF0123456789"
}

“Wipe the iPad Air simulator before I run the full test suite”

{
"deviceId": "B2C3D4E5-F6A7-8901-BCDE-F12345678901"
}
Simulator erased successfully.
Name: iPhone 16 Pro
UDID: F3A1B2C3-D4E5-6789-ABCD-EF0123456789
Runtime: iOS 18.0
State: Shutdown
All apps, data, and settings have been removed.