To delete a few files from a flash drive, open the drive in File Explorer, select the files, and press Delete. To erase everything at once, format the drive: open Disk Management, right-click the flash drive’s volume, and select Format. On a Mac, use Disk Utility and click Erase. Formatting or erasing removes all data on the drive, so copy anything you want to keep first.
This guide covers Windows 11 and Windows 10 plus macOS. The steps follow Microsoft’s Disk Management in Windows article, its format command and clean command references, and Apple’s Erase and reformat a storage device in Disk Utility guide.
How to Delete Files From a Flash Drive
Use this when you only want to remove some files and keep the rest.
- Plug in the flash drive and open File Explorer (press Windows key + E).
- Select the flash drive in the left pane. If you can’t find it, see how to open a USB drive on Windows 11.
- Select the files or folders you want to remove. Press Ctrl + A to select everything in the current folder.
- Press the Delete key, or right-click the selection and choose Delete. Confirm if Windows asks.
Result: The files disappear from the drive and the free space goes up. Windows may delete files on a removable drive permanently instead of moving them to the Recycle Bin, so double-check your selection before you confirm.
Deleting files doesn’t wipe them. Deletion only marks the space as available, so recovery software can often bring the files back until new data overwrites them. If you need the files gone for good, use one of the full-erase options below.
How to Erase Everything on a Flash Drive in Disk Management
Microsoft says you can open Disk Management by right-clicking Start, by searching for Create and format hard disk partitions, or by running diskmgmt.msc. See how to open Disk Management in Windows 11 for more ways.
- Right-click the Start button and select Disk Management.
- Find your flash drive in the list. Check the size and drive letter so you pick the right one.
- Right-click the flash drive’s volume and select Format.
- To fully erase the drive, clear the Perform a quick format box.
- Select OK, then select OK again to confirm.

Result: The drive comes back empty and ready to use. Microsoft says a quick format creates a new file table but doesn’t fully erase the volume, while a normal format fully erases it.
Microsoft also notes that you can’t format a disk or partition that’s in use, so close any files open from the flash drive first.
How to Format a Flash Drive From File Explorer
You can also format straight from File Explorer:
- Open File Explorer and select This PC.
- Right-click the flash drive and choose Format.
- Pick a file system. Choose FAT32 for the widest compatibility, NTFS for Windows-only use, and exFAT for large files on both Windows and Mac.
- Clear Quick Format if you want a full erase.
- Click Start, then OK.
Result: The drive is wiped and ready to use. If a camera or car stereo needs FAT32, see how to format a USB drive to FAT32 on Windows 11. To check the current format first, see what file format your USB flash drive uses.
How to Wipe Every Sector With DiskPart
For the most thorough erase built into Windows, Microsoft’s clean command reference says clean all sets every sector on the disk to zero, which completely deletes all its data. Plain clean only removes the partition information.
- Search for Command Prompt, right-click it, and choose Run as administrator.
- Type diskpart and press Enter.
- Type list disk and press Enter. Find the flash drive by its size.
- Type select disk #, replacing # with the flash drive’s number, and press Enter.
- Type clean all and press Enter. This can take a long time on a large drive.
Result: The drive has no partition left. Open Disk Management, right-click the unallocated space, and choose New Simple Volume to make it usable again. Selecting the wrong disk here erases that disk instead, so double-check the size before you type clean all.
Microsoft’s format command reference also offers a /P switch that zeros every sector during a format, and it notes that the /Q quick format option skips the sector-by-sector scan.
How to Erase a Flash Drive on a Mac
These steps follow Apple’s Erase and reformat a storage device in Disk Utility guide.
- Open Disk Utility from the Applications > Utilities folder.
- Choose View > Show All Devices.
- Select the flash drive in the sidebar, then click Erase.
- Choose GUID Partition Map from the Scheme menu, pick a format, and enter a name.
- If Security Options is available, use the slider to choose how many times to write over the erased data, then click OK.
- Click Erase, then click Done.

Result: Apple says erasing deletes everything on the device. Secure erase options are available only for some storage devices, so if you don’t see Security Options, Disk Utility can’t do a secure erase on that drive. Choose a format that both Mac and Windows can read if you’ll share the drive.
If the Flash Drive Won’t Erase
- Write protection: Some flash drives have a physical lock switch. Slide it to the unlocked position and try again.
- Files in use: Close any documents, photos, or apps using the drive. Microsoft says you can’t format a disk that’s in use.
- Wrong drive selected: Check the size and drive letter in Disk Management or the disk number in DiskPart before you continue.
- Need a file back? If you deleted something by mistake and haven’t written new data to the drive yet, see how to find deleted files on Windows 11.
Frequently Asked Questions
Does formatting a flash drive delete everything?
Yes. Microsoft and Apple both say formatting or erasing removes all data on the drive. A quick format leaves the old data recoverable, though, so turn quick format off or use clean all before you give the drive away.
Is deleting files the same as erasing the drive?
No. Deleting removes the files you select and marks their space as free. Erasing or formatting clears the whole drive and creates a new file system.
More Flash Drive Guides
- How to put files on a flash drive in Windows
- How to scan a USB flash drive with Norton 360
- How to fix a slow computer in Windows 11

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are tested on current devices or checked against official product documentation, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.