I'm giving my iPhone 7 to somebody and I want to reset all the data. How would I do that?

I'm giving my iPhone 7 to somebody and I want to reset all the data. How would I do that?

There should be a restore to factory settings options in the settings bit somewhere.

Settings.
General.
Reset.
Reset all settings.

Just be sure you've backed up everything that's important to you.