What to do before you sell, give away or trade in your iPhone or iPad – Apple Support

Go back to Settings and tap General > Transfer or Reset [device] > Erase All Content and Settings. If you've turned on Find My [device], you may need …
View full source