In fact, ordinary people won't try to open your phone to that extent
In theory it sounds scary but a child or friend or relative will not be able to accidentally delete your data. Conversely, this feature can protect phone data from bad guys, try to unlock the phone.
How to turn on the feature to automatically delete data on iPhone
To turn on this feature, go to Settings, find Touch ID & Passcode. You will then have to enter the password, then scroll to the end to find Erase Data and turn it on.
See more: