Erase iPhone - Apple Support
support.apple.com › guide › iphoneTap Get Started, follow the onscreen instructions, then return to Settings > General > Transfer or Reset iPhone. Tap Erase All Content and Settings. When iPhone restarts with all content and settings erased, you have the option to set up iPhone as new or restore it from a backup. See Turn on and set up iPhone.