Wipe your hard drive completely before you recycle or donate your computer
straightforward deleting files or emptying the trash does not remove data from your hard drive — it only hides the file names from the operating system. The data itself stays on the drive and can be recovered with basic tools. Before you recycle or donate a computer, you need to overwrite the entire drive so that old files, passwords, financial records, and personal photos cannot be retrieved.
The method depends on whether your computer uses a traditional hard disk drive (HDD) or a solid-state drive (SSD). Both can be wiped, but the tools and steps differ. You can do this yourself in an hour or two, or you can take the computer to a recycling centre that handles data destruction.
Key Takeaways
- Deleting files leaves data on the drive; you must overwrite the entire drive to prevent recovery.
- Windows computers can use the built-in Reset This PC tool, which wipes the drive and reinstalls Windows.
- Mac computers can use Erase All Content and Settings or Disk Utility to securely wipe the drive.
- Third-party tools like DBAN (Darik's Boot Negator) work on both Windows and Mac and offer multiple overwrite passes for older drives.
- If you cannot boot the computer or prefer not to handle it yourself, take it to a certified recycling centre that destroys data on-site.
Wiping a Windows computer using built-in tools
Windows 10 and Windows 11 include a reset feature that erases the drive and reinstalls the operating system. This is the simplest method for most users. Go to Settings, select System, then Recovery. Click Reset This PC and choose Remove Everything. Windows will ask whether you want to remove files locally or remove files and clean the drive. Choose the second option — it overwrites free space and makes recovery much harder.
The process takes 30 minutes to two hours depending on drive size and computer speed. Your computer will restart several times. When it finishes, Windows will be reinstalled and the drive will be blank. You can then recycle the computer or pass it on.
If your computer will not start or you want more control over the wiping process, use a third-party tool instead. Windows Reset This PC is reliable for most situations, but it does not work if the drive is encrypted with BitLocker and you do not have the recovery key.
Wiping a Mac using built-in tools
On a Mac running macOS 13.5 or later, use Erase All Content and Settings. Go to System Settings, select General, then scroll to the bottom and click Erase All Content and Settings. You will be asked to sign in with your Apple ID and confirm the action. The Mac will erase the drive, remove your Apple ID, and prepare the computer for a new user.
On older Macs or if you prefer more detailed control, use Disk Utility. Restart the Mac and hold Command + R to enter Recovery Mode. Open Disk Utility, select your main drive, and click Erase. Choose a format (APFS for newer Macs, Mac OS Extended for older ones) and confirm. This erases the drive but does not reinstall macOS. You can reinstall it afterward if you plan to donate the computer.
Both methods take 15 to 45 minutes. Erase All Content and Settings is faster and simpler for most users. Disk Utility gives you more options if you want to change the drive format or prepare the computer for a specific use.
Using DBAN for maximum security on older drives
DBAN (Darik's Boot Negator) is a free tool that runs from a USB drive and overwrites your entire hard drive multiple times. It works on both Windows and Mac computers and is useful if you want to be certain data cannot be recovered, or if your computer is too old to use built-in reset tools.
read DBAN from dban.org, write it to a USB drive using a tool like Rufus (Windows) or Etcher (Mac), then boot your computer from the USB drive. DBAN will scan for drives and let you choose which one to wipe. Select your main drive, choose the number of passes (three passes is standard; seven or more takes much longer but is more thorough), and start the wipe. The process can take several hours for large drives.
DBAN is most useful for older computers or if you are concerned about data recovery. For most modern computers, the built-in reset tools are faster and sufficient. DBAN does not work well with SSDs because it cannot verify that data is truly gone on solid-state drives — SSDs handle data differently than traditional hard drives.
Why SSDs require different handling
Solid-state drives (SSDs) store data differently than traditional hard drives, and overwriting them multiple times does not may provide data destruction the way it does for HDDs. SSDs use a technique called TRIM that marks old data as unused, and manufacturers use wear-levelling to spread writes across the drive. This means some old data may remain in areas the operating system cannot reach.
For SSDs, use the manufacturer's own find erase tool if available. Samsung, Intel, Crucial, and other makers provide free utilities that work with their drives. These tools send a command directly to the SSD that tells it to erase all user data at the hardware level. Check the manufacturer's website, read the tool, and follow their instructions.
If you do not know the SSD manufacturer or cannot access the tool, use the built-in reset features in Windows or macOS — they are sufficient for most purposes. For maximum security with an SSD, take the computer to a recycling centre and ask them to physically destroy the drive or use a certified data destruction service.
Taking your computer to a recycling centre for data destruction
If your computer will not start, you are not comfortable wiping it yourself, or you want professional verification that data is gone, take it to a certified recycling centre. Many centres offer on-site data destruction and will provide a certificate showing the drive was wiped or destroyed.
Search for "e-waste recycling near me" or "certified electronics recycling" in your area. Look for centres certified by R2 (Responsible Recycling) or e-Stewards — these certifications mean the centre follows strict data security standards. Call ahead and ask whether they destroy data on-site, what format the certificate comes in, and whether there is a fee. Some centres charge $10 to $30 per computer; others do it for free if the computer has resale value.
Bring your computer and any passwords or encryption keys you have. Tell the centre whether the drive is encrypted or locked. They will handle the rest and give you documentation that the data has been destroyed.
What to do if the computer is encrypted
If your computer uses BitLocker (Windows) or FileVault (Mac), the drive is already encrypted. You still need to wipe it before recycling, but the process is slightly different.
For BitLocker, you need the recovery key to decrypt the drive before you can wipe it. If you have the key, use Reset This PC as normal — it will handle the decryption. If you do not have the key, you cannot wipe the drive yourself. Take it to a recycling centre and tell them the drive is encrypted. They can physically destroy the drive or use professional tools to handle it.
For FileVault on Mac, sign in with your Apple ID and password, then use Erase All Content and Settings or Disk Utility. FileVault will decrypt the drive automatically during the erase process. If you cannot sign in, restart in Recovery Mode, use Disk Utility, and erase the drive from there.
Frequently Asked Questions
Can I recover files after I wipe the drive?
After using Reset This PC, Erase All Content and Settings, or DBAN, recovery is extremely difficult and requires specialized equipment. For practical purposes, the data is gone. If you wiped the drive using DBAN with multiple passes, recovery is nearly impossible.
How long does it take to wipe a computer?
Built-in reset tools take 30 minutes to two hours. DBAN can take several hours depending on drive size and number of passes. Professional recycling centres typically complete the job while you wait or within a few days.
Do I need to remove the hard drive before recycling the computer?
No. If you wipe the drive using the methods above, you can recycle the entire computer. Removing the drive yourself is not necessary and may damage other components. Only remove the drive if you plan to keep it or destroy it separately.
What if I forgot my Windows or Mac password?
You can still wipe the drive. On Windows, restart in Recovery Mode (hold Shift while clicking Restart from the login screen) and use Reset This PC. On Mac, restart in Recovery Mode (Command + R) and use Disk Utility. You do not need the password to erase the drive, only to access your files.
Is it safe to donate a computer after wiping it?
Yes, if you have wiped the drive using one of the methods above. Reinstall Windows or macOS if you want the computer to be usable for the next owner. If you used DBAN or a professional data destruction service, the drive is safe to donate or recycle.