If you need to sell or give away an iPhone or iPad, you’ll need to completely wipe the device before you hand it off to a new owner so they can use it. With a factory reset, all private data gets wiped and the device acts as if it were new. Here’s how to do it.