https://support.apple.com/en-us/HT204686 Apple’s guide https://support.apple.com/en-us/HT204686 wipe the phone erasing your device https://support.apple.com/en-us/HT204686 Set Up iPhone https://support.apple.com/en-us/HT204686 wipe your iPhone iPad Reset Guide https://support.apple.com/en-us/HT204686 Set As New Device