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.
- Open the Settings
- Tap on Lock screen
- Tap on Secure lock settings
- Enter your Lock screen Password/PIN/Pattern
- Enable or disable Auto factory reset