Knowing how to wipe a Mac and reset it to its factory settings can be a vital step if you're trying to sell or fix it. Here's how to do it.