How to Permanently Delete Files from USB Drive on Windows
In this article
When you delete files from a USB drive on Windows, they usually go to the Recycle Bin, but that doesn't mean they're gone forever. Even after you empty the Recycle Bin, the data remains on the drive until it's overwritten, and recovery software can often bring it back. This guide shows you how to permanently erase files from a USB drive so they can't be recovered, using built-in Windows tools and a free third-party utility.
What You'll Need
- A USB flash drive (or external hard drive) connected to your Windows PC
- Windows 10 or Windows 11 (the steps are similar on older versions)
- Optional: a third-party secure deletion tool (like Eraser or CCleaner) if you want to overwrite the data multiple times
- Backup of any files you want to keep – the process will erase everything on the drive
Step-by-Step
- Back up important files. Before you start, copy any files you need to keep to your computer's hard drive or another storage device. The methods below will permanently erase everything on the USB drive.
- Close any programs using the USB drive. Make sure no files from the drive are open in any application, and close any Explorer windows showing the drive's contents.
- Method 1: Use the Format command (quick but not fully secure). Open File Explorer (Windows key + E), right-click on the USB drive, and select "Format." In the dialog, choose a file system (FAT32 for compatibility, NTFS for large files, or exFAT for both). Uncheck "Quick Format" to perform a full format. Click "Start." This will erase the file system, but data may still be recoverable with specialized tools.
- Method 2: Use DiskPart to clean the drive (more secure). Press Windows key + X and select "Terminal (Admin)" or "Command Prompt (Admin)." Type
diskpartand press Enter. Then typelist diskto see all disks. Identify your USB drive by its size (be careful not to select your main hard drive). Typeselect disk X(replace X with the disk number of your USB drive). Then typecleanand press Enter. This removes all partitions and data. To create a new partition, typecreate partition primary, thenformat fs=fat32 quick(or ntfs/exfat), and finallyassignto give it a drive letter. - Method 3: Use a third-party secure deletion tool (most secure). Download and install a reputable tool like Eraser (free) or CCleaner (free version available). Open the tool and select the option to erase the entire USB drive or specific files/folders. Choose an overwrite method (e.g., Gutmann, DoD 5220.22-M, or a simple 3-pass). Run the operation. This overwrites the physical data with random patterns, making recovery virtually impossible.
- Verify the deletion. After using any method, check that the drive appears empty (or shows the new file system). You can also try to recover files with a recovery tool (like Recuva) to see if anything is left – if nothing shows up, your deletion was successful.
Common Mistakes
- Using Quick Format. Quick format only removes the file system index, not the actual data. Always uncheck "Quick Format" for a full format, or use DiskPart's clean command.
- Selecting the wrong disk in DiskPart. If you choose your main hard drive, you could erase your entire Windows installation. Double-check the disk number and size before running
clean. - Not backing up. Once you permanently delete, there's no undo. Always back up important files first.
- Assuming formatting is enough. A standard format (even full) may leave recoverable data on the drive, especially if you haven't overwritten it. For truly sensitive data, use a secure deletion tool.
Tips
- For everyday deletion of a few files, use Shift+Delete to bypass the Recycle Bin – but remember this is not secure, as data can still be recovered with software.
- If you're disposing of a USB drive, consider physically destroying it (e.g., shredding or drilling through the memory chip) for absolute security.
- Use the file system exFAT for drives that will be used with both Windows and Mac, or for large files (over 4GB). FAT32 is compatible with almost everything but has a 4GB file size limit.
- When using DiskPart, type
exitafter finishing to close the utility safely. - Some USB drives come with built-in encryption or write-protection; ensure the drive is not write-protected before attempting to format or delete.
Troubleshooting
- "Windows was unable to complete the format" error. This often happens if the drive is write-protected or has bad sectors. Check for a physical lock switch on the drive. If none, open Command Prompt as admin and run
diskpart, thenlist disk,select disk X,attributes disk clear readonly, and try formatting again. - DiskPart says "Access is denied." Make sure you're running the Command Prompt or Terminal as Administrator. Right-click the Start button and choose "Terminal (Admin)" or "Command Prompt (Admin)".
- The drive doesn't appear in File Explorer. It might be hidden or have no drive letter. Go to Disk Management (right-click Start > Disk Management) and check if the drive appears there. If it shows as "Unallocated," you can assign a drive letter by right-clicking and choosing "Change Drive Letter and Paths."
- After using DiskPart, the drive shows as RAW or unallocated. You need to create a partition and format it. In DiskPart, after selecting the disk, type
create partition primary, thenformat fs=fat32 quick(or ntfs/exfat), thenassign. Alternatively, use Disk Management to create a new simple volume. - Third-party tool fails to erase. Try running the tool as administrator, or use a different tool. Some tools may not support USB drives with certain controllers. You can also try using the built-in
cipher /w:command on a drive letter to overwrite free space, but this works on NTFS volumes.
Frequently Asked Questions
Q: Does emptying the Recycle Bin permanently delete files from a USB drive?
A: No. Emptying the Recycle Bin only removes the file references; the actual data remains on the drive until overwritten. Recovery software can often restore it.
Q: Is a full format enough to make files unrecoverable?
A: A full format (unchecking "Quick Format") writes zeros to the entire drive, which makes recovery very difficult but not impossible for advanced tools. For maximum security, use a tool that overwrites with random patterns multiple times.
Q: Can I recover files after using DiskPart's clean command?
A: The clean command removes partitions and file system structures, but the raw data may still be recoverable with professional recovery tools. To make it truly unrecoverable, follow up with a secure erase tool or overwrite the drive.
Q: What is the best file system for a USB drive?
A: It depends on your use. FAT32 is most compatible but has a 4GB file size limit. NTFS supports large files and security permissions but may not work on all devices (like some TVs or cameras). exFAT is a good middle ground for large files and cross-platform use.
Q: How many overwrite passes do I need?
A: For most users, a single pass of random data is sufficient. Government standards like DoD 5220.22-M use 3 passes, and Gutmann uses 35 passes, but these are overkill for typical use. One or two passes is fine for personal data.
Q: Can I permanently delete a single file without erasing the whole drive?
A: Yes. Use a secure deletion tool like Eraser that can overwrite specific files or folders. Windows doesn't have a built-in secure delete for individual files, but you can use cipher /w: to overwrite free space on an NTFS drive, which will cover deleted files.