A full format (unchecking “Quick Format”) or a single-pass overwrite using DiskPart’s “clean all” or the format command’s /p:1 switch permanently erases a USB drive, making file recovery by standard software tools impossible.
Trashing files or hitting “Quick Format” is a fast pass—but neither actually clears the data. Your private documents, photos, and old spreadsheets remain sitting on the drive, waiting for anyone with free recovery software to pull them back. If you need to sell the drive, hand it off, or be sure your old tax records stayed private, a permanent wipe is the only move that counts. The good news: Windows and macOS both include built-in tools that do the job right, and each method takes about five minutes of your time (the wait depends on drive size). Here’s exactly how to erase a USB drive so the data stays gone.
Why Quick Formatting Isn’t Enough
Quick Format only wipes the file system table—the map the computer uses to find data—and marks the space as available. The actual ones and zeros stay parked on the NAND chips. Any disk recovery tool can rebuild the table and pull your files back. A full format writes zeros to every addressable sector before building a fresh file system, turning recoverable data into unreadable noise. The same logic applies to a “Clean All” command via DiskPart: it overwrites every block with zeros, leaving nothing behind for software scanners.
Method 1: Full Format via Windows File Explorer
This is the simplest route for any Windows user. It does a surface check for bad sectors and overwrites the drive in one pass.
- Plug the USB drive into your PC.
- Open File Explorer, right-click the USB drive, and select Format.
- Under File System, choose exFAT (best for drives over 32GB and cross-platform use) or NTFS (Windows-only).
- Uncheck the box next to Quick Format —this is the critical step that triggers a full overwrite.
- Click Start and confirm. The process can take anywhere from 15 minutes to over an hour depending on the drive’s capacity and speed.
When it finishes, your drive is clean and formatted.
Method 2: DiskPart Clean All (Zero Overwrite)
The clean all command in DiskPart writes zeros to every addressable sector on the disk. It is the most thorough built-in option Windows offers.
- Press Windows Key + R, type
diskpart, and press Enter. Click Yes if User Account Control prompts you. - In the DiskPart prompt, type
list diskand press Enter. Note the disk number of your USB drive—identify it by its capacity. - Type
select disk N(replace N with the USB’s disk number) and press Enter. Double-check the number; selecting the wrong disk erases your internal drive. - Type
clean alland press Enter. This zeros every block—expect it to take a while (a 32GB drive can take about an hour). - When it finishes, type
create partition primary, press Enter, then enterformat fs=exfat quickto add a fresh file system quickly. - Finally, type
assignto give the drive a letter, thenexit.
The your USB drive appears in File Explorer with its full capacity ready to use.
Method 3: Format Command with the /p:1 Switch
The Windows format command gives you the same overwrite capability with simpler syntax.
- Press Windows Key + R, type
cmd, and press Enter. - In the Command Prompt, type
format X: /fs:exfat /p:1 /v:USB(where X: is your USB drive’s letter—check in File Explorer first). - The
/p:1flag tells the command to write zeros across all sectors once before formatting. Press Enter and confirm when prompted. - Wait for the process to finish. The command displays status updates as it works.
The drive will be clean, formatted in exFAT, and labeled “USB.”
Erasing a USB Drive on macOS
Apple’s built-in Disk Utility tool offers the same full-wipe capability, though without the labeled “zero pass” checkbox—the standard Erase function handles it on modern macOS.
- Open Applications > Utilities > Disk Utility.
- From the View menu, select Show All Devices so the physical drive (not just the volume) appears in the sidebar.
- Select your USB drive by its physical entry (the topmost item, usually named by brand).
- Click Erase in the toolbar. Set Format to ExFAT (for drives over 32GB) or MS-DOS (FAT) (for 32GB or less). Set Scheme to Master Boot Record for cross-platform compatibility.
- Click Erase and confirm. The drive name is limited to 11 characters. Once finished, the drive will mount, clean and ready.
For best security on macOS, you can use Security Options in older Disk Utility versions to add a zero pass, but the standard erase on current versions already ensures data is unrecoverable by software tools.
Windows vs. macOS: Quick Comparison
| Method | Overwrite Type | Best For |
|---|---|---|
| Windows full format (GUI) | Single-pass zero write + bad sector scan | Most users; simplest graphical option |
| DiskPart clean all | Single-pass zero write to every addressable block | Deepest built-in Windows wipe |
| Format /p:1 Command | Single-pass zero write before formatting | Quick one-liner for command-line users |
| macOS Disk Utility Erase | Standard full erase (zeroes and reformats) | Mac users; cross-platform format ready |
Does Erasing a USB Work on SD Cards Too?
Yes. Both Windows and macOS treat SD and microSD cards the same way as USB drives—they appear as removable volumes and respond to the same format and overwrite commands. The full format option or DiskPart’s clean all will wipe a memory card just as thoroughly. For cards used in cameras or drones, exFAT is the recommended file system for compatibility with the widest range of devices.
What To Know Before You Wipe
Formatting is permanent. Once zeros are written, no standard tool can reverse it. Check that you’ve got copies of anything you want to keep before starting. And the most common mistake people make in DiskPart—selecting the wrong disk—will erase your system drive instantly, so always confirm the disk number by its size before running clean all. On a 32GB drive, a full format takes roughly 30–60 minutes depending on the method and your system’s write speed.
Wipe Checklist
- Back up the data you want to keep first.
- In File Explorer, uncheck Quick Format for a full GUI overwrite.
- In DiskPart, verify the disk number by its capacity before running clean all.
- On macOS, use Show All Devices in Disk Utility so you erase the physical drive, not just the volume.
References & Sources
- Microsoft Learn. “clean command documentation.” Documents the “clean all” zero-overwrite behavior.
- Microsoft Tech Community. “The best way to permanently delete files from a USB flash drive.” Discussion of Format /p:1 and BitLocker approaches.
- Kingston Technology. “How to Format a USB Flash Drive.” Explains full format vs. quick format behavior.
- Apple Support. “Format a disk for Windows computers in Disk Utility.” Official macOS formatting procedure and file system guidance.
