How to erase everything from my iPhone?

Hi, I'm afraid that someone hacked in my iPhone, and want to erase everything but get all my apps back but just my apps and pics, how do I do this?

Confidence is everything.

SETTINGS --> GENERAL --> RESET --> ERASE All CONTENT AND SETTIGS

Go to SETTINGS
Choose GENERAL
Choose RESET
Then choose ERASE All CONTENT AND SETTINGS

There you go.