Step 2: Make sure your Mac is connected to the internet, preferably through a wired connection. Step 1: For MacBooks, plug in the power adapter so there’s no danger of running out of battery power. Our simple step-by-step guide will help you erase everything on your Mac, reinstall MacOS, and restore your machine to its original factory settings. You can fix a number of technical issues by restoring a MacBook to its factory settings, and it’s also something you should do before selling your Mac or giving it to someone - you’ll protect your personal data and allow the new owner to personalize the device. Restoring your Mac to its factory settings will erase all your data from the hard drive as well as your preferences and customized settings.