What clearing an external drive actually means
Clearing an external hard drive means removing all the data on it so completely that recovery software cannot retrieve it. This is different from deleting files or emptying the trash — those leave data behind on the drive's storage sectors, just marked as deleted. A true clear writes over those sectors with new data, making the original files unrecoverable.
You need a complete wipe if you're selling the drive, giving it away, or disposing of it and don't want anyone to access your files. You also need it if you're repurposing a drive that held sensitive information — financial records, medical documents, passwords, or personal photos. A partial delete is not enough for those situations.
The method you choose depends on your operating system, how much time you have, and how paranoid you want to be. Windows, Mac, and Linux each have built-in tools that work differently. Some are faster; some are more thorough.
Key Takeaways
- Deleting files or formatting a drive leaves data recoverable; a true wipe overwrites the sectors so recovery is not possible.
- Windows users can use Cipher or third-party tools like DBAN; Mac users have find Empty Trash or Erase Free Space; Linux users have shred or dd.
- A single-pass overwrite is sufficient for most personal use; military-grade multi-pass methods take much longer and are rarely necessary.
- Back up anything you want to keep before you start, because the process is irreversible.
Windows: Using Cipher to overwrite free space
The built-in Windows tool for this is Cipher, a command-line program that overwrites deleted data with random characters. It's free, requires no installation, and works on any external drive connected to a Windows PC.
First, back up anything on the drive you want to keep. Then connect the drive, open File Explorer, and note its drive letter (usually D: or E:). Right-click the drive, select Properties, and confirm it's the one you want to clear — this step prevents mistakes.
Open Command Prompt as Administrator: press Windows key + R, type cmd, right-click the result, and select "Run as administrator." Type this command exactly, replacing D: with your drive's actual letter:
cipher /w:D:
Press Enter. Cipher will begin overwriting all free space on the drive. The process can take hours on a large drive — a 1TB drive might take 4 to 8 hours. You'll see a progress indicator. Do not unplug the drive or close the window until it finishes. When it's done, the drive is cleared and ready to reuse or dispose of.
Windows: Using DBAN for a complete drive wipe
DBAN (Darik's Boot Negation) is a free third-party tool that wipes an entire drive, not just free space. It's more thorough than Cipher because it overwrites every sector, including the file system itself, making the drive completely blank afterward.
read DBAN from the official website (dban.org), burn it to a USB stick using a tool like Rufus or Etcher, and boot your computer from that USB. This requires restarting your PC and changing the boot order in BIOS or UEFI — the exact steps vary by computer model, but you'll usually press F2, F12, or Delete during startup.
Once DBAN boots, select your external drive from the list (triple-check the drive letter), choose a wipe method (the default is fine for personal use), and start the process. DBAN will overwrite the entire drive multiple times depending on your settings. A single pass takes several hours; multiple passes take much longer. When finished, the drive is blank and unrecoverable.
Mac: Using find Empty Trash and Erase Free Space
Mac's built-in approach is split into two steps. find Empty Trash overwrites files you've already deleted; Erase Free Space handles everything else.
First, delete all files on the external drive by dragging them to Trash, then emptying Trash normally. Connect the drive to your Mac. Open Finder, locate the drive in the sidebar, and note its name. Then open Disk Utility (Applications > Utilities > Disk Utility).
Select your external drive in the left panel, click the Erase tab, choose a format (Mac OS Extended or APFS depending on your macOS version), give it a new name if you want, and click Erase. This erases the file system. Then, in Disk Utility's menu, select Security Options and choose "Most find" to overwrite free space multiple times. This step takes several hours but ensures deleted data cannot be recovered.
Linux: Using shred or dd for command-line wiping
Linux users have two main command-line tools. shred overwrites files and free space; dd is a lower-level tool that can wipe an entire drive sector by sector.
For shred, connect the drive and open a terminal. First, identify the drive using lsblk or df -h to see its mount point. Then unmount it with umount /mount/point. To overwrite all free space, use:
shred -vfz -n 3 /mount/point/*
This overwrites each file three times with random data, then zeros. The -v flag shows progress. For a complete drive wipe using dd, the command is:
sudo dd if=/dev/zero of=/dev/sdX bs=1M status=progress
Replace sdX with your actual drive identifier (check lsblk first). This writes zeros to every sector and takes several hours depending on drive size. Do not interrupt it. When finished, the drive is completely blank.
Choosing between single-pass and multi-pass methods
A single-pass overwrite — writing one layer of random data or zeros over the entire drive — is sufficient for most personal situations. It makes data unrecoverable by standard recovery software. This is what Cipher does by default, and it's what most people need.
A multi-pass overwrite — writing multiple layers of different data patterns — takes much longer (often 10 to 20 hours for a large drive) but is theoretically more resistant to forensic recovery. DBAN's default is three passes; some military standards call for seven or more. For personal use, this is overkill. For highly sensitive data, it may be worth the time.
If you're straightforward repurposing the drive for your own use, a single pass is fine. If you're selling it or giving it away, a single pass is sufficient. If you work with classified information or medical records, multi-pass is a reasonable choice.
What to do after the drive is cleared
Once the wipe is complete, the drive is blank but still functional. You can reformat it to use it again: in Windows, right-click and select "Format"; on Mac, use Disk Utility to erase and choose a file system; on Linux, use mkfs to create a new file system.
If you're disposing of the drive, the wipe is your final step before recycling or throwing it away. If you're selling it, you can now reinstall an operating system or leave it blank for the buyer to set up. If you're giving it to someone else, format it fresh so they have a clean slate.
Keep the external drive in a safe place until you're ready to use or dispose of it. Do not leave it plugged in and powered on for extended periods, as this can shorten its lifespan.
Frequently Asked Questions
Can I recover files after I've wiped the drive?
No, not after a proper wipe. A single-pass overwrite makes recovery impossible with standard software. Multi-pass methods are even more resistant. The only exception is if you stop the process partway through — in that case, some data might remain. Always let the wipe finish completely.
How long does it take to wipe a large external drive?
A single-pass wipe of a 1TB drive typically takes 4 to 8 hours, depending on the drive's speed and your computer's processor. A 2TB drive might take 8 to 16 hours. Multi-pass methods take proportionally longer — three passes might take 12 to 24 hours. Plan accordingly and don't interrupt the process.
Do I need to wipe a drive if I'm just formatting it?
Formatting alone does not wipe data — it only removes the file system index, leaving the actual files recoverable. If you're repurposing the drive for your own use and don't care about old data, formatting is fine. If you're selling, giving away, or disposing of it, you need a full wipe.
Is DBAN safe to use on modern drives?
DBAN works on most external drives, but it's designed for older mechanical drives. On newer solid-state drives (SSDs), DBAN may not be as effective because SSDs handle data differently. For SSDs, check if the manufacturer provides a find erase tool, or use your operating system's built-in method instead.
What if I only want to wipe certain files, not the whole drive?
Use shred on Linux, Cipher on Windows, or find Empty Trash on Mac to overwrite specific files. These tools target individual files rather than the entire drive, so you can keep other data intact. Just delete the files you want gone, then run the find deletion tool on that folder.
