Maybe you are seeking how to restore your Mac computer to factory settings because:
You want to erase your MacBook Pro/Air, MacBook, iMac to sell or give away the Mac.
Your Mac is running slow or having other problems so that you want to delete everything on Mac to start over.
If that’s the point, here’s exactly the place for you. It is not difficult to erase everything on a Mac and factory reset the MacBook or iMac. But if you want to get it done without losing data, or wipe a Mac securely and completely, there are a couple of things you should do. Just follow this guide to complete all the steps that are needed to securely and completely erase everything on Mac. Your Mac will be successfully factory reset after that.
Step 1: Back Up Your Mac Before Factory Reset
There must be some important files on your Mac. Therefore, it is necessary to back up your files before erasing your MacBook or iMac.
Options to back up your Mac before wiping it
Move everything that are important to you to an external hard drive. It is time-consuming but feasible if you have limited documents, photos, videos, etc. that need to be backed up before erasing Mac.
Back up your files on Mac to a cloud storage, such as iCloud. Before doing that, make sure your iCloud account has enough free space.
Make a copy of your Mac data to an external hard drive with a backup program, such as Time Machine, Apple's built-in backup tool for Mac. Learn about the steps to back up a Mac: How to Backup Your Mac with or without Time Machine.
Clean junk files to make back up quicker
You can wipe a Mac without losing data by using one of the backup methods mentioned above. And to reduce the size of your Mac's backup and increase the backup speed, it is recommended to clean useless junk files on your Mac before a Time Machine or iCloud backup. Macube Cleaner can easily delete caches, logs, browsing history, duplicate files and photos, large files, useless apps and more from your Mac. What you need to do is to:
1. Download and run Macube Cleaner on your Mac.
2. Select the file type you want to clean, such as system junks, duplicate photos. Click Scan.
3. Click Clean to remove the junks you don't need.
After the cleaning up, go ahead to back up your Mac. The backup will finish more quickly, taking less space of your external hard drive or iCloud account. For a more detailed tutorial, click How to Use Macube Cleaner.
Step 2: Completely Delete Private Files
Do you know that files on Mac are actually recoverable after factory reset? That's right. Even though you have factory reset your Mac and erased everything on it, it is still possible to recover the erased files on the Mac with a data recovery program like FonePaw Data Recovery. If you have confidential files on your Mac and don't want to take the risk that somebody may find the files from the formatted Mac after performing data recovery, you can use the Eraser feature on Macube Cleaner to completely delete confidential files on your Mac before factory reset. This feature can erase the trace of a file on the hard drive and make it unrecoverable. Just to:
1. Install Macube Cleaner on your Mac.
2. Click Shredder and select the files you want to destroy.
3. Click Clean to make it unrecoverable.
Step 3: Turn off FileVault
FileVault encryption is an Apple built-in feature that is designed to encrypt your hard drive and files on the hard drive. It is recommended to turn off FileVault before reset and clean install macOS system. Here are the steps to disable FileVault encryption.
1. Open System Preferences > Security & Privacy.
2. On the Security & Privacy window, click the FileVault tab.
3. Click Lock button and you will need to enter password of the administrator account the unlock FileVault settings.
4. After entering the password, you are able to click Turn Off FileVault. Click it.
All files on your Mac will be dencrypted after FileVault is off.
Step 4: Remove iTunes Authorization and iCloud Account
I believe you don't want your iTunes or iCloud account to be linked to your MacBook or iMac after you sell your Mac or give it away. By the way, you can authorize only 5 computers with your iTunes account, so there’s no reason to lose an allocation to a Mac that you no longer own. Therefore, before erasing your MacBook or iMac, you should first deauthorize iTunes and disable iCloud on your Mac.
Deauthorize iTunes on Mac
1. Open iTunes on Mac. Click Account > Authorizations > Deauthorize This Computer.
2. You'll need to enter the password of your Apple ID. Then click Deauthorize.
Sign out of iCloud on Mac
1. Open System Preference > iCloud. Click Sign Out. A window will pop up, asking whether you want to keep a copy of your iCloud data on the Mac.
2. Deselect all the options and click Continue, which will ensure that your iCloud data won't stay on the Mac.
Sign out of iMessage on Mac
Also, don't forget that your iCloud account can also be used to receive iMessage. So run Messages, click Preferences > Accounts to sign out of iMessage.
Note: If you have devices that are paired with your Mac via Bluetooth, remember to check and unpair them at Apple menu > System Preferences > Bluetooth before you wipe your Mac.
Step 5: Erase MacBook, MacBook Air/Pro, iMac
After finishing the above steps, you are now officially able to wipe your MacBook, MacBook Pro, MacBook Air or iMac. You need to erase your Mac in recovery mode.
Enter your Mac into recovery mode
Power off your Mac and then reboot it. As it is rebooting, press and hold Command + R (Option + Command + R or Shift + Option + Command + R) until you see the Apple logo.
Generally, you can use Command + R combination to enter the Recovery mode. If you need to upgrade you need to the latest macOS compatible with your Mac, use Option + Command + R; If you want to clean install the macOS that came with your Mac, use Shift + Option + Command + R.
Erase everything on your Mac
When you are in recovery mode on Mac, you will see the macOS Utilities menu.
1. Select Disk Utility.
2. Select the disk to erase. To erase everything on your Mac, you usually should choose the main hard drive named Macintosh HD.
Note: If the Mac is running High Sierra or later, Disk Utility will show all the Macs linked with your Apple ID under Macintosh HD. So be careful not to delete the drive of other Macs.
3. Click Erase. Then you need to enter name and format of the drive. You can choose either APFS or Mac OS Extended (journaled) to reformat the Mac. APFS is a new file system introduced by Apple since High Sierra, which is more recommendable. Click Erase to begin wiping everything on your Mac.
Step 6: Reinstall macOS on MacBook, iMac
After deleting everything on your Mac, you can now reinstall macOS. Go back to macOS Utilities menu. Select Reinstall macOS and follow the on-screen instructions to finish.
That's all about how to factory reset your Mac and erase everything. If you have more question, drop it in the comment section.