Back up any important data
Charge the phone to at least 50%
Open Settings
Tap System
Tap Reset options
Tap Erase all data or Factory data reset
Review the warning
Tap Reset phone or Erase all data
Enter your PIN, password, or pattern if prompted
Confirm the reset
Wait for the device to restart and erase all data
Set up the phone again after it restarts
