To wipe a USB flash drive in Windows, plug it in, open File Explorer, right-click the drive, choose Format, and untick Quick Format before clicking Start. A full (non-quick) format in Windows 10 and 11 writes zeros over the whole drive, which stops ordinary recovery tools. For a stronger result, use diskpart's clean all command. Flash drives use wear leveling like SSDs, so no method can promise every hidden cell is overwritten; if a stick held very sensitive data and you no longer need it, physically destroying it is the safest choice. Details for each method follow.
Before you start
- Copy off anything you want to keep. Every method below erases all files on the drive.
- Check you have the right drive. Note its letter and size in File Explorer under This PC. Unplug other USB drives and memory cards so you cannot pick the wrong one.
- Check the write-protect switch. Some sticks and most full-size SD cards have a small lock slider. If it is locked, Windows cannot format the drive.
Method 1: Full format in File Explorer
- Open File Explorer and click This PC.
- Right-click the USB drive and choose Format. (On Windows 11 it is in the main right-click menu.)
- Choose a File system: exFAT works on Windows, Mac and most TVs and cameras and has no 4 GB file size limit; FAT32 is most widely compatible but limited to 4 GB per file (and Windows only offers it for drives up to 32 GB); NTFS is best if it will only be used with Windows PCs.
- Type a Volume label if you like.
- Untick Quick Format. This is the important step.
- Click Start, confirm the warning, and wait. A full format of a large, slow stick can take an hour or more.
A quick format only creates a new, empty file system. The old files stay on the stick and recovery software can usually find them. A full format also scans for bad sectors and, since Windows Vista, writes zeros to every sector it can reach.
Method 2: diskpart clean all
This erases the whole device, including partitions, and is useful if the stick has odd partitions or will not format normally.
- Click Start, type cmd, and choose Run as administrator.
- Type
diskpartand press Enter. - Type
list disk. Find your USB drive by its size. Disk 0 is almost always your Windows drive; do not select it. - Type
select disk N, where N is the USB drive's number. Then typelist diskagain and check the asterisk is next to the right disk. - Type
clean all. This writes zeros over every sector and can take a long time. Nothing appears to happen until it finishes. - When it says it succeeded, create a new partition so the drive is usable:
create partition primary, thenformat fs=exfat quick, thenassign, thenexit.
A quick format at the end is fine here, because clean all has already overwritten the drive.
How secure is wiping a flash drive?
USB sticks and SD cards are flash memory, and their controllers use wear leveling to spread writes across the chips. They also keep spare blocks that Windows cannot address. That means:
- A full format or
clean alloverwrites everything Windows can see, which defeats normal undelete and recovery programs. - Small amounts of old data may remain in spare or retired blocks that only a specialist reading the chips directly could reach.
- Multiple overwrite passes do not reliably fix this and add wear. The same logic is explained for SSDs in how to securely erase an SSD.
For everyday reuse or giving a stick to someone, one full overwrite is a reasonable standard. For a stick that held things like scanned passports, tax records or client files and is being thrown out, physically destroying it (cutting through the chip, or using a shredding service) removes the doubt.
Wipe only deleted files, keep the rest
If you want to keep what is on the stick but make sure files you already deleted are gone, wipe its free space instead of formatting. In Command Prompt, run cipher /w:E:\, replacing E: with the stick's letter. See how to wipe free space in Windows for what this does and does not cover.
Common problems
| Problem | Likely cause and fix |
|---|---|
| "The disk is write-protected" | Check the lock switch. If there is none, the stick may have failed into read-only mode, which flash drives sometimes do at end of life. Destroy it rather than reuse it. |
| "Windows was unable to complete the format" | Try diskpart with clean all, then create a new partition. |
| Drive shows a smaller size than printed | Leftover partitions from a bootable USB. clean all removes them. |
| Format is very slow | Normal for a full format on USB 2.0 sticks or large cards. Use a USB 3 port if possible. |
| "Access denied" in diskpart | Command Prompt was not run as administrator. |
Wiping USB drives with Evidence Wipe
Evidence Wipe's External Drive Support works with USB sticks, SD cards and external drives. It can scan a stick for leftovers, wipe its free space while keeping your files, or fully erase it, and it detects whether each drive is an SSD, NVMe, hard drive or USB drive. Each pass is read back and verified, and you get a Verification Report you can keep or export to CSV. A Real-Time Alert can also let you know when a USB drive is plugged in. The flash limits above still apply, and we do not claim otherwise. For larger external hard drives, see how to wipe an external hard drive, and for the full list of features see the features page.
Frequently asked questions
Does formatting a USB drive erase everything?
A quick format does not; the old files can usually be recovered. A full format (Quick Format unticked) in Windows 10 and 11 writes zeros over the drive, which stops ordinary recovery tools.
Can I wipe an SD card the same way?
Yes. SD and microSD cards are treated like USB drives in Windows, so a full format or diskpart clean all works the same way. Check the card's lock switch first.
What file system should I use after wiping?
exFAT is a good default because it works on Windows, Mac and many devices and handles files over 4 GB. Use FAT32 for older devices and NTFS if it will only be used with Windows.
