Erase Simulator (Factory Reset)
simctl-eraseReset iOS simulator devices to factory settings without deleting the device, clearing all apps and data for clean-state testing.
Instructions
simctl-erase
Reset iOS simulator devices to factory settings.
Overview
Resets a simulator to clean factory state without deleting the device itself. All apps and data are removed, but the simulator persists and can be immediately reused. Useful for clean state testing and fresh app installation workflows.
Confirmation
confirm: true is required before permanently deleting simulator or app data.
Batch selection
Use all:true or deviceType/runtime filters instead of deviceId. Batch operations target available simulators; erase/delete require confirm:true. Results report each attempted device independently.
Parameters
Required
deviceId (string): Device UDID to erase (from simctl-list)
Optional
force (boolean, default: false): Force erase even if device is booted
Returns
Erase status with device information, confirmation that device persists, wasBooted flag indicating if device was running during erase, success indicator, and guidance for next steps.
Examples
Erase simulator to clean state
await simctlEraseTool({ deviceId: 'ABC-123-DEF' });Force erase booted device
await simctlEraseTool({
deviceId: 'ABC-123-DEF',
force: true
});Related Tools
simctl-list: Find device UDID to erase
simctl-shutdown: Shutdown device before erase (if not using force)
simctl-boot: Boot device after erase to continue testing
Notes
Device persists after erase - only data is removed
All apps, preferences, and user data are deleted
Device returns to factory settings
Use force: true to erase booted device (otherwise must shutdown first)
Perfect for repeatable clean state testing
Faster than delete + create for reset workflows
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "simctl-erase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | ||
| force | No | ||
| confirm | No | Explicitly confirm permanent data deletion. | |
| runtime | No | ||
| deviceId | No | ||
| deviceType | No |