Go to Settings > General > Transfer or Reset iPhone > Reset. Choose an option: WARNING: If you choose the Erase All Content and Settings option, all of your content is removed.