Enter your device password if prompted.

On the device, go to Settings → Security and Privacy → Security Wipe .

Ensure the device is powered off completely.

Tap Security Wipe .

Release the volume keys. The device will enter Factory OS Recovery Mode and automatically reinstall the factory OS.