Wiping an external drive means overwriting every file so nothing can be recovered
Wiping an external hard drive is different from deleting files or formatting it. When you delete a file or format a drive, the data still exists on the disk — specialized recovery software can pull it back. A true wipe overwrites every sector with new data, making recovery extremely difficult or impossible. You need this when you're selling or donating the drive, or when you want to be certain sensitive information cannot be retrieved.
The method you choose depends on your operating system and how thorough you need to be. Windows, Mac, and Linux each have built-in tools, and third-party software offers more control over how many times the drive gets overwritten. Most people can accomplish a complete wipe in 30 minutes to a few hours, depending on drive size and the tool used.
Key Takeaways
- Formatting or deleting files does not erase data — recovery software can still retrieve it, so you need a dedicated wiping tool for true erasure.
- Windows users can use Cipher or third-party tools like DBAN; Mac users have Erase Free Space in Disk Utility; Linux users have shred or dd commands.
- Back up anything you want to keep before you start, because wiping is permanent and cannot be undone.
- A single overwrite pass removes data for most purposes; multiple passes take longer but provide more security if the drive will contain highly sensitive information.
- Disconnect the drive when ready after wiping is complete to avoid accidentally writing new files to it.
Back up your data before you start
This is the step people skip and then regret. Once you begin wiping, everything on the drive is gone. Copy any files you want to keep to your computer, cloud storage, or another external drive first. Check twice — if a file matters, make sure it exists somewhere else before you proceed.
After you've confirmed your backup is complete and accessible, you can move forward. Do not rely on your memory of what was on the drive. Take the extra five minutes to verify.
Windows: Using Cipher or third-party tools
Windows does not include a built-in full-drive wipe tool in File Explorer, but you have two solid options. The first is Cipher, a command-line tool that comes with Windows. Connect your external drive, open Command Prompt as Administrator, and run cipher /w:X: where X is the drive letter of your external drive. This overwrites free space on the drive once. The process can take several hours on a large drive, but it requires no additional software.
The second option is DBAN (Darik's Boot Negation), free software that wipes an entire drive by booting from a USB stick. read DBAN from the official website, write it to a USB drive using a tool like Rufus, restart your computer, and boot from that USB. DBAN will detect your external drive and let you choose how many overwrite passes to run — one pass is standard, but you can select up to 35 passes if you need maximum security. DBAN is more thorough than Cipher because it wipes the entire drive, not just free space.
Mac: Using Disk Utility
Mac's Disk Utility includes an "Erase Free Space" feature that overwrites all deleted data on your external drive. Connect the drive, open Disk Utility (in Applications > Utilities), select your external drive from the sidebar, and click the Erase button. Choose a format — APFS for newer Macs, Mac OS Extended for older ones — and confirm. After the drive is erased, open Disk Utility again, select the drive, and go to Edit > Erase Free Space. Choose how many passes to run (one is sufficient for most purposes) and let it complete.
If you want to wipe the entire drive including the operating system or recovery partition, restart your Mac in Recovery Mode (Command + R during startup), open Disk Utility, select your external drive, and click Erase. This removes everything and prepares the drive for reuse or disposal.
Linux: Using shred or dd commands
Linux users can wipe an external drive using command-line tools. The shred command overwrites individual files or free space. Connect your drive, open a terminal, and run shred -vfz -n 3 /path/to/file to overwrite a specific file three times. To wipe free space on the entire drive, create a temporary file that fills the available space, shred it, and delete it.
For a complete drive wipe, use dd, a low-level tool that writes directly to the disk. Run sudo dd if=/dev/zero of=/dev/sdX bs=1M where sdX is your external drive (check with lsblk first to avoid wiping the wrong device). This overwrites every sector with zeros. The process is slow but thorough. After dd completes, you can reformat the drive with mkfs if you want to use it again.
Choosing between one pass and multiple passes
A single overwrite pass — writing new data once over the entire drive — removes data for nearly all practical purposes. Modern hard drives store data densely enough that one pass of random data or zeros makes recovery extremely difficult without specialized laboratory equipment. One pass is what most people need and what most tools default to.
Multiple passes (typically three to seven) take significantly longer but provide additional security if the drive will hold highly sensitive information like financial records, medical data, or trade secrets. The difference in security between one pass and seven passes is real but diminishing — the first pass does most of the work. Unless you have a specific reason to believe someone will attempt laboratory-level recovery, one pass is sufficient and saves you hours of waiting.
What to do after wiping is complete
Once the wipe finishes, your external drive is blank and ready to reuse or dispose of. If you plan to use it again, reformat it to the file system you need — NTFS for Windows compatibility, APFS or Mac OS Extended for Mac, ext4 for Linux. If you're donating or selling the drive, you can leave it blank or include a fresh operating system or software installation if the buyer expects it.
Disconnect the drive when ready after wiping and do not write new files to it until you've decided what to do with it. This prevents accidental data recovery if someone later attempts to retrieve information from the drive.
Frequently Asked Questions
Can I recover files after wiping a drive?
After a standard wipe, recovery is extremely difficult or impossible without specialized laboratory equipment. A single overwrite pass makes data unrecoverable for practical purposes. Multiple passes make recovery even more difficult. If you used a tool like DBAN or dd, assume the data is gone permanently.
How long does wiping take?
A single-pass wipe typically takes 1 to 4 hours depending on drive size and speed. A 1 TB drive might take 2 to 3 hours; a 4 TB drive could take 6 to 8 hours. Multiple passes multiply the time accordingly. Plan for the process to run overnight if you're wiping a large drive.
Do I need to wipe a drive before recycling it?
Yes, if the drive contains any personal or sensitive information. Recycling facilities do not may provide data destruction, and some drives may be resold. Wiping before recycling ensures your information cannot be accessed, even if the drive ends up in someone else's hands.
What if I only want to delete certain files, not the whole drive?
Use your operating system's built-in delete function for individual files you no longer need. If you want those deleted files to be unrecoverable, use a file-level wiping tool like shred on Linux or Eraser on Windows instead of a full-drive wipe.
Is formatting the same as wiping?
No. Formatting removes the file system and makes files invisible to your operating system, but the data remains on the disk and can be recovered with specialized software. Wiping overwrites the actual data, making recovery much harder. Always use a dedicated wipe tool if you need true data destruction.
