What "completely erase" means and why it matters

Completely erasing a computer means removing all your files, programs, and settings so thoroughly that they cannot be recovered — not just deleting them or hiding them. When you delete a file normally, the computer marks that space as available but leaves the data sitting there until something else overwrites it. A determined person with the right tools can still read it. A complete erase overwrites that space with random data multiple times, making recovery impossible.

You need a complete erase before you sell, donate, or recycle a computer because your files contain passwords, financial information, medical records, and personal details that could be used against you. Even if you think you deleted everything, standard deletion is not enough.

Key Takeaways

  • Windows and Mac both have built-in tools to erase your entire computer — Windows Reset and Mac Erase and Reinstall — and these are your first choice because they are free and designed for this exact task.
  • These built-in tools overwrite your data as part of the process, so recovery is not possible afterward.
  • The process takes 30 minutes to several hours depending on your computer's speed and how much data you have, and you will need your Microsoft or Apple password to complete it.
  • After the erase finishes, your computer will restart with a fresh operating system, and you should not use it again before handing it over.

How to erase a Windows computer completely

On Windows 10 or 11, use the built-in Reset tool. Open Settings by pressing the Windows key and typing "Settings," then click the Settings app. Go to System, then Recovery. You will see a button labeled "Reset this PC" — click it.

Windows will ask whether you want to keep your files or remove everything. Choose "Remove everything." It will then ask whether you want to remove files and clean the drive. Choose "Remove files and clean the drive" — this is the option that overwrites your data so it cannot be recovered. If you only choose "Remove everything" without the cleaning step, your files can still be recovered with special tools.

Windows will ask you to confirm and may ask for your Microsoft password. Enter it, then let the process run. Your computer will restart several times. Do not turn it off or unplug it during this process. When it finishes, Windows will restart with a fresh setup screen, as if the computer is brand new. At this point, your old files are gone and unrecoverable.

How to erase a Mac completely

On a Mac running macOS 11 or later, use Erase and Reinstall. Restart your Mac and hold Command + R as it starts up. This opens Recovery Mode. When you see the macOS Utilities window, click "Erase Mac" (or "Reinstall macOS" if Erase Mac does not appear — the exact wording varies by macOS version).

The system will ask which disk you want to erase. Select your main drive, usually called "Macintosh HD." Click Erase. It will ask for your Apple ID password and your Mac password — enter both. The process will take 30 minutes to an hour. Your Mac will restart when it is done, and you will see the setup screen for a new Mac. Your old files are now unrecoverable.

If your Mac is older and running macOS 10.15 or earlier, the process is slightly different. Restart and hold Command + R, then go to Disk Utility instead. Select your drive, click Erase, and choose APFS as the format (or Mac OS Extended if APFS is not available). This erases the drive but does not reinstall the operating system, so you will need to reinstall macOS afterward using Recovery Mode again.

What to do before you erase

Back up anything you want to keep. Once you start the erase process, you cannot stop it and recover your files. Copy important documents, photos, or other files to an external drive or cloud storage like Google Drive, OneDrive, or iCloud before you begin.

Write down any information you will need after the erase. If you use programs that require license keys or activation codes, save those somewhere safe. If you have passwords stored only in your browser, write them down or save them to a password manager on a different device.

Make sure you have your Microsoft or Apple password. You will need it to complete the erase process. If you do not remember it, reset it on a different device before you start — you cannot reset it on the computer you are erasing.

What happens if the built-in tools do not work

If your computer will not start up, or if the built-in erase tool crashes or gets stuck, you have two options: use a third-party tool, or take the computer to a professional.

Third-party tools like DBAN (Darik's Boot Negation) for Windows or Secure Erase for Mac can erase a drive even if the operating system is broken. These are free. You download the tool on a different computer, put it on a USB drive, restart your broken computer from that USB drive, and run the erase from there. The process is more technical than using the built-in tools, and you will need to follow the tool's instructions carefully.

If you are not comfortable with that process, a local computer repair shop can erase your drive for you. This usually costs $50 to $150 and takes a day or two. They can also confirm that the erase was successful.

After the erase is complete

Do not use the computer again after the erase finishes. Do not log in, do not install programs, do not download files. The moment you start using it, you are creating new data that will be harder to erase later if someone recovers the drive.

If you are selling the computer, hand it over with the setup screen still showing. The buyer will set it up themselves. If you are donating it, you can leave it at the setup screen or power it off completely — either way, the previous owner's data is gone.

If you are recycling the computer, remove the hard drive first if you want to be absolutely certain. Some recyclers will destroy the drive for you, but if you are unsure, taking the drive out yourself and destroying it separately is the safest option. You can physically damage a hard drive by opening it and scratching the metal platters inside, or you can take it to an electronics recycler that specializes in secure destruction.

Frequently Asked Questions

Can I recover my files after I erase the computer?

No, not if you used the "clean the drive" option on Windows or Erase and Reinstall on Mac. These tools overwrite your data with random information, making recovery impossible even with specialized tools. If you only used standard deletion without the cleaning step, recovery might be possible, but the built-in erase tools do not leave that option.

How long does it take to erase a computer?

The process usually takes 30 minutes to two hours on a modern computer. Older computers or computers with large hard drives may take longer. Do not interrupt the process or turn off the computer while it is running — this can leave your data partially erased and potentially recoverable.

What if I forgot my Microsoft or Apple password?

Reset your password on a different device before you start the erase process. Go to account.microsoft.com or appleid.apple.com, use the "Forgot password" option, and follow the steps. You will need access to your recovery email or phone number. Once you have reset your password, you can use it to complete the erase on your computer.

Do I need to remove the hard drive before erasing?

No. The built-in erase tools erase the hard drive in place, and you do not need to remove it. You only need to remove the hard drive if you want to destroy it physically before recycling the computer, or if the computer will not start and you cannot use the erase tools.

Is it safe to sell a computer after erasing it?

Yes, as long as you used the "clean the drive" option on Windows or Erase and Reinstall on Mac. Your old files cannot be recovered. The buyer will set up the computer with their own account and files. Do not log back in or use the computer after the erase is complete.