To wipe an external hard drive in Windows, copy off anything you want to keep, then either run a full format (not a quick format), use format with the /p switch, or use diskpart clean all to overwrite every sector. A quick format or deleting the files only removes the index, so the old data can still be recovered. If the "hard drive" is actually a portable SSD, an overwrite helps but cannot guarantee every copy is gone, so use the maker's secure-erase tool if it held anything sensitive.
The right method depends on whether you want to keep using the drive, sell it, or throw it away, and on what kind of drive is inside the case.
First: hard drive or SSD?
External drives come in two very different types. Large, heavier drives (often 1 TB and up, sometimes needing their own power supply) are usually spinning hard drives. Small, light "portable SSD" models are flash storage. Check the label or the model number on the manufacturer's site. Windows does not always report USB drive types correctly.
This matters because overwriting works reliably on hard drives but not completely on SSDs, which spread data across cells and keep hidden spare space. USB enclosures can also block the commands (TRIM and secure erase) that SSDs use to clear old data. For portable SSDs, the manufacturer's own utility is usually the only way to run a true secure erase. See how to securely erase an SSD.
Step 1: Back up and identify the drive
- Copy anything you want to keep to another drive and check the copy opens.
- Unplug other external drives and USB sticks so you cannot pick the wrong one.
- Open File Explorer, click This PC and note the drive letter and size of the external drive (for example
E:, 2 TB).
Method 1: Full format in File Explorer
Since Windows Vista, a full format (with Quick Format unticked) writes zeros to every sector of the volume. It is the simplest secure option for a hard drive you are keeping or giving to someone you know.
- In File Explorer, right-click the external drive and choose Format...
- Pick a File system: NTFS for Windows-only use, exFAT if it will also be used on other devices.
- Untick Quick Format.
- Click Start and confirm.
Expect it to take a long time: roughly an hour or more per few hundred gigabytes on a USB hard drive, depending on the connection. The progress bar can look stuck; leave it running.
Limitation: a format covers the volume (partition), not space outside it. If the drive has several partitions or unallocated space, use Method 3.
Method 2: The format command with /p
The command-line format tool can zero every sector and then repeat with random data. Open Terminal or Command Prompt as administrator (right-click Start and choose Terminal (Admin) in Windows 11, or search for Command Prompt and choose Run as administrator), then run, replacing E: with your drive letter:
format E: /fs:NTFS /p:1
/p:1 zeros every sector and then overwrites once more with random data. Higher numbers add more passes, which take proportionally longer and add little on a modern hard drive.
Method 3: diskpart clean all (whole disk)
This overwrites the entire physical disk, including every partition and the partition table. It is the most thorough built-in option and also the easiest to get badly wrong, because it erases whichever disk you select without asking about its contents.
- Open Terminal (Admin) or an administrator Command Prompt and type
diskpart. - Type
list disk. Find the external drive by its size. Disk 0 is almost always your Windows drive; do not select it. - Type
select disk 2(using the correct number), thendetail diskto confirm the model name and volume letter match the external drive. - Type
clean all. It can run for many hours with no progress display. - When it finishes, open Disk Management (right-click Start > Disk Management), initialize the disk, and create a new volume if you want to use it again.
Comparing the methods
| Method | Overwrites old data | Covers whole disk | Report | Best for |
|---|---|---|---|---|
| Delete files / quick format | No | No | No | Nothing private |
| Full format | Yes (one pass) | One volume | No | Hard drive you keep or pass to family |
format /p | Yes (multiple) | One volume | No | Same, with extra passes |
diskpart clean all | Yes (one pass) | Yes | No | Hard drive you sell or give away |
| Manufacturer secure erase | Drive erases itself | Yes, including hidden areas | Varies | Portable SSDs |
Only want to clear deleted files?
If you want to keep the files currently on the drive and just make sure previously deleted ones cannot be recovered, you do not need to erase everything. Overwrite the free space instead with cipher /w:E:\, which leaves existing files alone. Our guide to wiping free space in Windows explains it, and the same idea applies to USB flash drives.
Disposing of a drive that no longer works
A drive that is not recognized cannot be wiped with software, but its platters may still be readable in a lab. If it held private data, have it physically destroyed through an electronics recycler that offers drive destruction, or drill through the case and platters yourself (wear eye protection). Do not just put it in the trash.
Wiping an external drive with Evidence Wipe
Evidence Wipe's External Drive Support handles USB hard drives, portable SSDs, USB sticks and SD cards. It detects whether the drive is an SSD or a hard drive and chooses accordingly: one verified pass plus TRIM for SSDs, or your choice of DoD 5220.22-M (3 pass), DoD 5220.22-M ECE (7 pass) or Gutmann (35 pass) for hard drives. Every pass is read back and checked, which none of the built-in methods do.
You can also scan the drive first, wipe only its free space if you want to keep the files, or do a full erase. Each job ends with a Verification Report saying what was erased, how and when, with a tamper-check fingerprint so later changes to the report can be detected. That record is useful if you are handing drives back to a client or employer. The same SSD caveat applies: for a portable SSD that held highly sensitive data, finish with the manufacturer's secure-erase tool. See the full feature list.
Frequently asked questions
Does formatting an external hard drive erase everything?
A quick format does not; it only resets the file system, so files can be recovered. A full format with Quick Format unticked writes zeros over the whole volume.
How long does it take to wipe an external hard drive?
A one-pass overwrite of a USB hard drive often takes several hours for a terabyte or more, depending on the drive and the USB connection. Multi-pass methods take proportionally longer.
Can I wipe an external drive on a Mac and use it on Windows?
You can, but this guide covers Windows only. If the drive will be used with Windows afterward, formatting it as exFAT or NTFS in Windows is simplest.
