Steps to factory reset your iPhone
- Step 1: Open Settings, then tap on your name at the top.
- Step 2: Scroll down → tap on Sign Out. Before signing out, make sure to keep a copy of Health, Keychain, and Safari, then tap Sign Out.
- Step 3: Go back to Settings → go to General → tap on Transfer or Reset iPhone at the bottom.
- Step 4: Tap on Erase All Content and Settings and click Continue.
Result: Your iPhone will be signed out of iCloud and completely erased, restoring it to factory settings and removing all your personal data.
Tip: Ensure your data is backed up to iCloud or another source before erasing your device.