What deleting everything on your Mac actually means

Deleting everything on a Mac means erasing your entire hard drive and reinstalling macOS from scratch. This wipes out all your files, programs, settings, and accounts — leaving you with a blank machine that looks like it just came from the factory. The process takes between one and three hours depending on your Mac's age and internet speed.

Most people do this before selling a Mac, giving it away, or handing it to someone else. It is also the nuclear option when your Mac has serious performance problems or malware that won't go away. If you just want to delete individual files or empty your trash, this is not the right path — those are one-click operations in Finder.

Before you start, understand that this is permanent. Once you erase your drive, the files are gone. Make sure you have backups of anything you want to keep, and that you know your Apple ID password — you will need it to set up the Mac again or to unlock it after the erase.

Key Takeaways

  • Back up everything you want to keep before you start, because erasing your drive destroys all files permanently.
  • You need your Apple ID password to complete the erase and to set up the Mac afterward, so confirm you have it before beginning.
  • The erase process happens in System Settings under Erase All Content and Settings (newer Macs) or through Recovery Mode (older Macs).
  • After the erase finishes, your Mac will restart and walk you through setup as if it were brand new.

Back up your files before you erase

The first step is to save anything you want to keep. The easiest way is to use Time Machine, Apple's built-in backup tool. Plug in an external hard drive, open System Settings, click General, then Time Machine, and select your drive. Let it run until the backup finishes — this can take hours if you have a lot of files.

If you do not have an external drive, you can copy files manually to a cloud service like iCloud Drive, Google Drive, or Dropbox. Open Finder, drag your important folders into the cloud folder, and wait for them to sync. This is slower than Time Machine but works if you only have a few folders to save.

Do not skip this step. Once you erase your drive, there is no way to get your files back unless you have a backup somewhere else.

Erase your Mac using System Settings (2022 and newer)

If your Mac is running macOS Monterey or newer, the easiest path is through System Settings. Open System Settings, click General on the left side, then scroll down and click Transfer or Reset. You will see an Erase All Content and Settings button.

Click it. Your Mac will ask you to enter your Apple ID password and confirm that you want to erase everything. It will also ask whether you want to keep or remove your Apple ID account. Choose remove if you are giving the Mac to someone else, or keep it if you are selling it (the new owner will need to enter their own Apple ID during setup).

Your Mac will restart and begin erasing. This takes 15 to 30 minutes. When it finishes, you will see the setup screen, just like when the Mac was new. You can stop here and hand it over, or set it up with your own account again.

Erase your Mac using Recovery Mode (older Macs)

If your Mac is older than 2022, you will need to use Recovery Mode instead. Shut down your Mac completely. Turn it back on and immediately hold Command + R until you see the Apple logo or a spinning globe. Keep holding until the macOS Utilities window appears.

Click Disk Utility, then click your hard drive in the left sidebar (usually called Macintosh HD). Click the Erase button at the top. A dialog will ask for a name and format — leave the name as Macintosh HD and set the format to APFS (or Mac OS Extended if your Mac is very old). Click Erase and confirm.

This erases your drive but does not reinstall macOS. When it finishes, go back to the Utilities window and click Reinstall macOS. Your Mac will download and install a fresh copy of the operating system — this takes 30 minutes to an hour depending on your internet speed. When it finishes, your Mac will restart and show the setup screen.

Set up your Mac after the erase

After the erase and reinstall finish, your Mac will walk you through setup. You will choose your language, connect to Wi-Fi, and sign in with your Apple ID. If you are giving the Mac to someone else, stop here and hand it over — they will create their own account during setup.

If you are keeping the Mac, continue through setup and create your account. Then restore your files from your Time Machine backup. Open System Settings, go to General, click Transfer or Reset, and choose Restore from Time Machine Backup. Select your backup drive and let it restore — this can take an hour or more depending on how much data you have.

If you saved files to a cloud service instead, sign into that service and download your files back to your Mac.

What to do if your Mac will not erase

Sometimes the erase process fails or gets stuck. If System Settings will not let you erase, try restarting your Mac and trying again. If that does not work, use Recovery Mode instead — it is more reliable on older or damaged Macs.

If Recovery Mode fails to erase, your drive may have hardware problems. In that case, take your Mac to an Apple Store or authorized repair shop. They have tools to erase drives that the standard process cannot handle. Be aware that this may cost money if your Mac is out of warranty.

Selling or giving away your Mac after erasing

Once your Mac is erased and you have not set it up again, it is ready to hand over. The new owner will see the setup screen when they turn it on and can create their own account. Make sure you have removed your Apple ID account during the erase process — if you did not, the new owner will be locked out until they contact Apple to remove your account.

If you forgot to remove your Apple ID and already gave the Mac away, contact Apple Support with proof of purchase. They can remove your account remotely so the new owner can set up the Mac.

Frequently Asked Questions

Can I undo an erase after I have started it?

No. Once the erase process begins, it cannot be stopped or reversed. This is why backing up your files first is so important. If you realize mid-erase that you forgot something, let it finish and then restore from your backup.

Do I need an internet connection to erase my Mac?

You need internet to download and reinstall macOS after erasing, but the erase itself does not require it. Connect to Wi-Fi before you start so the reinstall can begin as soon as the erase finishes.

What if I forget my Apple ID password?

You will not be able to complete the erase without it. Go to iforgot.apple.com and reset your password before you start the erase process. If you do not have access to that email address anymore, contact Apple Support — they can help you regain access to your account.

Will erasing my Mac remove viruses or malware?

Yes. Erasing your drive and reinstalling macOS removes everything, including any malware. This is one of the most reliable ways to clean a Mac that has been infected. Just make sure you do not restore files from a backup that was made while the malware was present.

How long does the whole process take?

From start to finish, expect one to three hours. The erase itself takes 15 to 30 minutes, the macOS reinstall takes 30 minutes to an hour, and setup takes another 15 to 30 minutes. Restoring files from a backup can add another hour or more depending on how much data you have.