Back up any important data
Turn off the device
Open the Settings app
Go to System or General management
Select Reset or Reset options
Tap Factory data reset or Master reset
Review the warning message
Confirm the reset
Enter your PIN, password, or pattern if prompted
Wait for the device to erase and restart
Set up the device again after the reset completes
