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