What deleting everything on a Mac actually means
Deleting everything on a Mac means erasing your entire hard drive — all your files, programs, settings, and the operating system itself. When you do this, your Mac becomes blank, like it was the day it left the factory. You can then reinstall macOS from scratch or sell the machine knowing nothing personal remains on it.
This is different from emptying the Trash or deleting individual files. Those actions leave data behind on the drive that can sometimes be recovered with special software. A full erase removes the file structure itself, making recovery much harder. Most people do this when they're selling a Mac, giving it away, or starting over after malware or a failed upgrade.
Before you start, understand that this process is permanent. Once you erase the drive, you cannot undo it. Back up anything you want to keep first — photos, documents, email, browser bookmarks, everything. A full backup takes an hour or two depending on how much data you have.
Key Takeaways
- Back up your entire Mac using Time Machine or another backup method before you erase anything, because the process cannot be reversed.
- You can erase your drive and reinstall macOS using Recovery Mode, which is built into every Mac and requires no external drive or installation disc.
- If you plan to sell or give away your Mac, erase it using Erase All Content and Settings (on newer Macs) or Disk Utility (on older ones) to remove personal data completely.
- After erasing, your Mac will boot into macOS Setup and ask you to create a new user account, just like a brand-new machine.
Back up your Mac before you do anything
The fastest way to back up is Time Machine, which comes built into macOS. Plug in an external hard drive, open System Settings (or System Preferences on older Macs), find Time Machine, and click "Select Backup Disk". Choose your external drive and let it run. The first backup takes a few hours; after that, Time Machine backs up automatically every hour.
If you don't have an external drive, you can back up to iCloud instead. Go to System Settings, click your Apple ID at the top, then iCloud, then iCloud Drive. Turn on iCloud Drive and let it sync. This backs up your documents and desktop, but not your entire system — it's slower and takes longer, but it works if you have the storage space and a good internet connection.
Write down your Apple ID and password before you erase. You'll need them to sign back in after the erase is complete. If you use FileVault (encrypted storage), write down your recovery key too — you can find it in System Settings under Security and Privacy.
Erase your Mac using Recovery Mode
Recovery Mode is a hidden part of macOS that lets you erase your drive and reinstall the operating system without any external disc or USB drive. To enter Recovery Mode, shut down your Mac completely, then turn it back on and when ready hold down Command + R. Keep holding until you see the Apple logo or a spinning globe. This takes about 30 seconds.
Once you're in Recovery Mode, you'll see a menu with several options. Click "Disk Utility" and then "Continue". In Disk Utility, you'll see your hard drive listed on the left side — it's usually called "Macintosh HD" or something similar. Click it once to select it, then click the "Erase" button at the top.
A dialog box will appear asking for a name for the drive and a format. Leave the format as "APFS" (the modern format for newer Macs) or "Mac OS Extended" (for older ones — Disk Utility will show you which one your Mac uses). Give the drive any name you want or just leave it as "Macintosh HD". Click "Erase" and wait. This takes 10 to 30 minutes depending on how large your drive is and how much data was on it.
Use Erase All Content and Settings on newer Macs
If you have a Mac from 2017 or later, there's an easier way that doesn't require Recovery Mode. Go to System Settings, click "General" on the left, scroll down, and look for "Transfer or Reset". Click that, then click "Erase All Content and Settings".
macOS will ask you to enter your password and confirm that you want to erase everything. It will also ask whether you want to keep your Apple ID account or remove it. If you're selling the Mac, remove it — this prevents the new owner from being locked out by set up Lock. If you're keeping the Mac, you can keep your Apple ID so you can sign back in easily after the erase.
This method is faster and more straightforward than Recovery Mode because it handles everything in one place. The erase still takes 10 to 30 minutes, and your Mac will restart several times during the process. Don't turn it off or unplug it while it's working.
Reinstall macOS after the erase
After the erase completes, your Mac will restart and show the macOS Setup screen, just like a brand-new machine. You'll be asked to choose your language, connect to Wi-Fi, and create a new user account. You can sign in with your Apple ID or create a local account with just a username and password.
If you want to restore your files from the backup you made earlier, you can do that now. During Setup, you'll see an option that says "Migrate Information Now" or "Transfer Your Information". Click that and choose Time Machine or iCloud, depending on where you backed up. macOS will restore your files, programs, and settings from the backup.
If you're selling or giving away the Mac, don't restore from a backup. Just complete Setup with a new account and leave it that way. The new owner will see a clean, empty Mac and can set it up as their own.
What to do if your Mac won't start Recovery Mode
If holding Command + R doesn't work, try Command + Option + R instead. This starts Internet Recovery, which downloads Recovery Mode from Apple's servers. It's slower (it can take 20 to 30 minutes to read), but it works even if your Mac's built-in Recovery partition is damaged.
If neither of those works, your Mac may have a hardware problem. Try restarting the Mac and holding down the power button for 10 seconds to force it off, then turn it back on and try Command + R again. If it still doesn't work, you may need to take it to an Apple Store or a repair shop.
On very old Macs (2012 or earlier), you might need a physical installation disc or USB drive. If you have one, insert it, restart your Mac, and hold down the C key. If you don't have one, you can create a bootable USB drive on another Mac using the macOS installer from the App Store, but that's a more advanced process.
Selling or giving away your Mac safely
After you erase and reinstall macOS, your personal data is gone, but your Mac is still linked to your Apple ID through set up Lock. If you're selling it, you need to remove your Apple ID so the new owner can use it. Go to System Settings, click your Apple ID at the top, scroll down, and click "Sign Out". macOS will ask you to confirm and may ask for your password.
If you erased using "Erase All Content and Settings" and chose to remove your Apple ID during the erase, this step is already done. You can skip it and go straight to selling the Mac.
Before you hand over the Mac, restart it one more time and make sure it boots into the Setup screen. This confirms that the erase worked and that the new owner will see a clean machine. Take a photo of the Setup screen as proof that the Mac was erased, in case there are questions later.
Frequently Asked Questions
Can I recover files after I erase my Mac?
Files erased from a Mac can sometimes be recovered with specialized software, especially if the drive wasn't completely overwritten. However, once you reinstall macOS, the recovery becomes much harder. If you think you might need something later, back it up first. After the erase is done, assume the files are gone.
Do I need an internet connection to erase my Mac?
You don't need internet to erase the drive itself using Disk Utility in Recovery Mode. However, if you want to reinstall macOS afterward, you'll need internet to read it. If your internet is slow, the read and reinstall can take several hours.
What's the difference between emptying Trash and erasing the whole drive?
Emptying Trash deletes files you've put there, but the data still exists on your drive and can be recovered. Erasing the whole drive removes the file structure itself, making recovery much harder. If you're selling your Mac, erase the whole drive. If you just want to delete a few files, empty the Trash.
Will erasing my Mac remove viruses or malware?
Yes. Erasing the drive removes everything, including any malware. However, if the malware infected your backup, you'll restore it when you restore from backup. If you think your Mac has malware, erase it, reinstall macOS, and restore only your documents and photos — not your programs or system settings.
How long does it take to erase a Mac?
The erase itself usually takes 10 to 30 minutes. Reinstalling macOS takes another 30 minutes to an hour, depending on your internet speed. The entire process from start to finish typically takes one to two hours.