How to factory reset a Mac or MacBook
Performing a factory reset on your MacBook or Mac can solve many macOS problems, and is essential if you’re selling. Here’s how to reset a Mac, whether it’s an iMac, Mac mini or MacBook. This tutorial also includes the macOS Catalina method for deleting the new Macintosh HD-Data partition which you will need to do if you are reselling or if you want to do a clean install
By Karen Haslam, Editor | 27 Jan 20
If you’re passing on an old Mac to family or friends, selling your machine, or simply looking to fix a misbehaving machine, resetting it to factory settings and wiping it will allow you to set it up like a new Mac. This means you can pass it on without worrying that someone could access your data, or restart your Mac as if it was brand new.
Fortunately it’s easy to remove all the data and content from a Mac before you sell it on, and it’s very important that you do so if you don’t want to leave yourself open to identity theft. Just remember that if someone is going to be using the Mac after you, removing personal information alone isn’t enough – you also need to make sure there’s a working version of macOS installed afterwards.
Our guide to wiping all your data from a Mac enables you to reset your machine to an unblemished factory state, as if it was fresh out of the box, with a clean and working install of macOS.
Note the video above shows the method pre-macOS Catalina. Since the arrival of Catalina there is a change to the process of wiping your Mac due to the arrival of the Macintosh HD-Data partition so read on to find out how to delete or wipe your Mac in Catalina.
In brief, here is how to reset your Mac. Further detail is given below and linked from each step.
- Make sure you’re connected to the internet so you can download the latest copy of the Mac operating system able to run on your machine.
- We usually recommend that you either back up your Mac using Time Machine or clone your internal hard drive to an external drive. This enables you to access all your old files, and the drive can be re-cloned to the internal drive if you want to restore your Mac, read more about this step here. However, this won’t be necessary if you are using iCloud Drive to sync all your Documents and Desktop and any other data on your Mac with all your Apple gadgets. When we wiped our Mac we were able to recover everything we needed from iCloud. More on using iCloud to sync your files here.
- You will need to deauthorise your iTunes store account, via the Music app in macOS Catalina or iTunes if you haven’t yet updated to Catalina. You should also deauthorise any third-party apps, such as Photoshop, that are locked to your Mac.) Read more.
- Sign out of and disable iCloud. Read more.
- Restart the Mac in Recovery Mode. Hold down Command and the R key during restart – or use alternative key combination as appropriate.
- Use Disk Utility to erase the hard drive. This is where the method will change depending on whether or not you have updated to Catalina. In Catalina you first need to erase the Macintosh HD-Data partition before erasing the Macintosh HD. Read more about how to do this below.
- Click on Reinstall macOS or Reinstall macOS and Continue. Follow the instructions to reinstall macOS. Read more.
Step 1: Clone or back up your Mac hard drive or sync with iCloud
Resetting a Mac to factory settings gets rid of all the data stored on that machine, so you may want to make a backup of the data first.
This can be done very simply using the Time Machine software Apple provides – here’s how to back up using Time Machine and how to move data to a new Mac.
However, you may not need to have a Time Machine backup if you sync everything to iCloud. Since macOS Sierra arrived in 2016 it’s been possible to store all your documents and everything on your Desktop via iCloud Drive, so that you can access everything on any of your Apple devices. You’ll have to wait a while for everything re sync when you switch to a new Mac (or to a clean installation on your existing Mac – here’s more info on that) but aside from any apps you need to re-download and some of your settings you will be able to access everything you need. Using iCloud Drive this way will mean you need to pay Apple for iCloud storage though, prices here.
If you don’t want to pay for iCloud storage and you don’t want to use Time Machine then you could make a clone of the whole hard drive using a program like Carbon Copy Cloner or SuperDuper (both are available as free trials). Choose your main hard drive in the source, and your external hard drive in the Destination. Then click on Clone.
You should be able to boot from the cloned external hard drive. To test this, reset your Mac and hold down the Option/Alt key when you boot up your Mac. Use the arrow keys on your Mac to select the external drive and tap Enter.
This cloned drive can be re-cloned back to the main drive if you decide to restore your Mac, or it can be used to access all the original files from your computer after you have wiped the internal hard drive. Step2:
Step 2: Deauthorise your iTunes account
You should deauthorise your computer from the iTunes Store. This means it will no longer be linked to your iTunes account. (This is important because you can only use up to five Macs to play music and movies that are locked to your iTunes account.)
The precise method of deauthorising iTunes varies depending on which version you’ve got.
If you’re running macOS Catalina, iTunes no longer exists as a standalone app, so you will instead access the iTunes Store via the new Music app.
Open the Music app, and select Music > Preferences from the menu bar. Now go to the General tab and select iTunes Store. From here you can access your account and choose to deauthorise this computer.
If you’re running a Mac that has iTunes 12, you’ll need to open iTunes and click Account > Authorisations > De-authorise This Computer. Enter your Apple ID and password and click De-authorise.
iTunes 11 and earlier
In older versions (below) you’ll need to click Store > Deauthorise This Computer.
Step 3: Turn off FileVault
FileVault encrypts the files on your hard drive. It’s not on by default, but if it is being used then it’s advisable to turn it off before going any further (you’ll be wiping the files soon, so security shouldn’t be a concern).
- To turn off FileVault, start by opening System Preferences.
- Click on Security & Privacy.
- Then select the FileVault tab.
- Check that it says ‘FileVault is turned off for the disc [name of main hard drive]’. If it’s off you don’t need to do anything.
- If if is turned on then you should click on the padlock icon in the bottom left, enter your user name and password and click on Unlock.
- Now click Turn Off FileVault.
- You will need to enter your user name and password again and you may need to wait while decryption takes place.
Step 4: Disable iCloud
The next step is to turn off iCloud. Before you start, if you have any iCloud files that were created on that Mac they will be archived into your home folder (so remember to copy them to your backup).
- Open System Preferences and click on iCloud.
- Tap on Sign Out.
- To remove all your personal data, untick the boxes beside iCloud Drive, Contacts, Calendars and Reminders. Then click Continue. (Or click ‘Delete From Mac’ on each popup if you’re using an earlier version of macOS.)
You may see a warning that iCloud Drive needs to finish updating before continuing with sign out.
Now you just need to wait while iCloud does its stuff.
Step 5: Restart your Mac in Recovery Mode
Now you have backed everything up, and shut off your iCloud connections, you are ready to wipe the Mac.
- To enter Recovery Mode, click the Apple logo at the top left of the screen and select Restart.
- Immediately hold down the Command and R keys until you see an Apple logo or spinning globe. (You may be better off using a different key combination depending on the age of your Mac, and which macOS you want installed or was installed on the Mac when you bought it – we have a complete guide to starting a Mac in Recovery Mode here). For example, Apple recommends that “if you’re selling or giving away a Mac that is using OS X El Capitan or earlier, use Option-Command-R to make sure that the installation isn’t associated with your Apple ID”.
- Expect it to take a while for the Mac to start up in this mode.
- You may see a screen asking you to choose a language.
- The next screen you’ll see is the Recovery Mode Utilities window. Since macOS Sierra and later it has looks something like this:
If you’re having problems because Command + R isn’t doing the trick, read this: How to reinstall macOS if Recovery won’t work.
Step 6: Erase your Mac’s drive and reformat your Mac
Now you’re ready to erase your drive.
This is where things will look a little different if you are using macOS Catalina compared to how they looked before.
We’ll run through the method in Catalina first before moving onto Mojave or previous versions of macOS below that.
How to delete your Mac in Catalina
When Apple introduced macOS Catalina in 2019 it added a new read-only volume where the operating system lives. This volume is Macintosh HD (yours may have a different name). Alongside it you will also have a Macintosh HD – Data volume. This is where your data resides. The reason Apple separated the two volumes in Catalina is to ensure that critical operating system data can’t be overwritten – but it means that if you want to make sure all traces of your data are removed from your Mac before selling it on, or because you want to do a clean install, you will need to wipe both volumes.
When you are reformatting your Mac in Catalina you first need to delete the Macintosh HD – Data volume before deleting Macintosh HD. You do need to delete both, you can’t cut corners.
- As per the step above, start up your Mac in Recovery by holding down Command + R as the Mac boots up.
- Once Recovery starts up choose Disk Utility.
- You should see two disks – Macintosh HD and Macintosh HD – data (shown below – sorry about image quality!) This new data drive in Catalina is where your data is stored separately to the macOS installation.(It’s possible your drive is called something else, like Home HD for example).
- Click on this Macintosh HD – Data drive to select it.
- Either click on the – button or go to the menu and choose Edit > Delete APFS volume.
- You will see a message warning you that this will permanently erase your data. Click on Delete. Do not choose Delete Volume Group.
- Wait while the volume is deleted.
- Now you need to go back to Disk Utility to delete the Macintosh HD. You have to do both steps as you won’t just be able to reinstall macOS over the top of macOS. And you will need to reinstall the macOS in order to recreate the Macintosh HD-Data volume. Click on Macintosh HD to select it.
- We recommend that you click Unmount. Initially when we tried to delete Macintosh HD we saw an error message that stated: Erase process has failed because volume Macintosh HD on disk 2s5 couldn’t be unmounted because it is in use by process 793 (kextcache). Unmounting first fixed this problem.
- With Macintosh HD still selected click on Erase.
- Enter a name you want to give the drive once you have reformatted it, such as Macintosh HD.
- Choose the format. This is will be APFS if you are using Catalina – older OSs might have had the option of Mac OS Extended (Journaled).
- Click Erase and enter your Apple ID if required. Wait.
- Now quit Disk Utility to return to the MacOS Utilities screen.
The next step involves reinstalling macOS. We’ll discuss how to do that in the section below.
How to delete your Mac in Mojave or earlier
The process for deleting and reformatting your Mac is slightly less complicated in macOS Mojave or earlier as there isn’t the second Data volume to delete first.
As above, start up in Recovery.
- Select Disk Utility from the options, and click Continue.
- Click on your main hard drive, typically called Macintosh HD, in the sidebar on the left. You’re looking for the disk name, not the volume name indented underneath it if that appears.
- To wipe your hard drive, click the Erase button, then click Erase. Note that this permanently erases all data on the hard drive so don’t do this unless you’ve cloned the drive or are happy to never access anything on that drive again.
- When it’s finished, exit the program by going to the top menu and selecting Disk Utility > Quit Disk Utility.
Step 7: Reinstall macOS
You can’t just sell your Mac having erased the contents – if you do the new user will be confronted with a flashing question mark when they start up the Mac because there will be no operating system installed. You need to reinstall macOS before you can sell it on.
Alternatively, if you are planning to continue to use the Mac and just wanted to do a clean install you will want to install a version of macOS.
You should still be in macOS Utilities.
- Choose Reinstall macOS from Utilities and follow the instructions that appear to reinstall macOS.
- Your Mac will start to download and install Catalina (or which ever version of macOS your Mac was running – if you wanted to install an older version of macOS we have more information below, or you could read this).
- Eventually after the longest-ever 49 mins or so your Mac will restart. But the wait isn’t over. It will still take a little time while you start up and watch the white bar. Ours said 11 minutes remaining around that time, but it took a lot longer than that. Just leave your Mac to get on with it and ignore any time remaining indicators.
- Finally you will see the Welcome screen. If you are selling or passing on your Mac you can leave it at this stage because the new user will need to input their details. If you want to continue to use the Mac then follow the steps to set it up.
How to install an older version, downgrade macOS
The method above will work if you want to install the latest version of macOS installed on the Mac. It won’t upgrade you to the latest verison (currently Catalina) if you aren’t already running it.
There are other options if you want to install a different version of the macOS.
Instead of pressing Command + R at start up you could press Shift + Option/Alt + Command R (if you are running Sierra 10.12.4 of later) to install the version of MacOS that came with your Mac, or the one closest to it that is still available.
Alternatively you could make a bootable drive containing the version of macOS that you want to run and install it on your Mac using that. Read how to do that here: How to make a bootable macOS installer on an external drive.
If you need to install an older version of the Mac operating system and are wondering how you can do that if you haven’t got the original discs, read this: How to install old versions of macOS or Mac OS X.
We have another article that goes into more detail on how to install an older version of macOS using Recovery mode.
Note: We may earn a commission when you buy through links on our site, at no extra cost to you. This doesn’t affect our editorial independence. Learn more.
Author: Karen Haslam, Editor
An ex-Apple PR, Karen’s career highlights include interviewing Apple’s Steve Wozniak and discussing Steve Jobs’ legacy on the BBC. Her focus is Mac, but she lives and breathes Apple.