How to erase all information from an iPhone or iPad

Wiping an iPhone or iPad in preparation for sale is a serious necessity and should always be done. Apple has made it easy for users to delete all information from its devices, allowing it to be clean for sale or given to someone else.