In the "Secure lock settings", there is an option "Auto factory reset" to factory settings. 15 incorrect attempts to unlock the Samsung device via the display lock will automatically reset the device to factory settings and all data will be deleted.
- Tap on Settings
- Tap on Lock screen
- Tap on Secure lock settings
- Enter the current Pattern, PIN or Password
- Enable or disable Auto factory reset