How do I make sure my iPhone is erased before selling?

How do I make sure my iPhone is erased before selling?

Go back to Settings and tap General > Transfer or Reset [device] > Erase All Content and Settings. If you turned on Find My [device], you might need to enter your Apple ID and password.