The Erase Data setting
In Settings > Face ID & Passcode, at the bottom, Erase Data sets the iPhone to erase all information, media and personal settings after 10 consecutive failed passcode attempts (Apple).
| Erase Data on | Erase Data off | |
|---|---|---|
| After 10 wrong passcodes | The iPhone is erased | It stays locked (iPhone Unavailable) |
| Your data | Gone from the phone; restore from a backup | Still there, but you can't get in without a reset |
| Good for | Protecting data if the phone is stolen | Homes with kids who tap at the passcode screen |
Before the 10th try
Wrong passcodes don't count instantly to 10: after several, the iPhone makes you wait, with longer waits each time, and shows iPhone Unavailable. That slows down anyone guessing.
Forgot the passcode?
You can erase the iPhone with a computer or recovery mode and set a new passcode; that erases the data, so you restore from a backup (Apple).
Screen Time passcode
The Screen Time passcode is separate from the device passcode; failing it doesn't trigger Erase Data.
Stop it before the guessing starts
Guessing needs the phone in someone's hands. WTMP, armed on the table or charger, sounds a loud alarm (even in silent mode) as soon as the phone is picked up or unplugged, and logs the time. Only your passcode stops it.