Back up your iPhone
Put your iPhone in Recovery Mode
Connect your iPhone to a Mac or PC
Open Finder on Mac or iTunes on Windows or older macOS
Select your iPhone
Choose Restore iPhone
Confirm the restore
Wait for the restore to complete
Set up your iPhone again
Restore your backup if needed
