What "delete" means for a flash drive
Deleting files from a flash drive works differently than deleting them from your computer's hard drive. When you drag files to the trash or recycle bin on a flash drive, they disappear from the folder view, but the data is still physically there on the drive — just marked as "deleted space" that the drive can write over later. If you want to truly erase a flash drive so the data cannot be recovered, you need to format it instead.
Formatting wipes the drive's file system and overwrites the space where files lived. This is what you need if you're giving the drive away, selling it, or want to make sure deleted files stay deleted. The process takes a few minutes and works the same way on Windows, Mac, and Linux computers.
Key Takeaways
- Dragging files to trash does not erase them from a flash drive — formatting does.
- Formatting a flash drive erases everything on it, so back up any files you want to keep first.
- Windows users right-click the drive and select Format; Mac users use Disk Utility; Linux users can use the file manager or command line.
- After formatting, the drive is blank and ready to use again, and old data cannot be recovered through normal means.
How to format a flash drive on Windows
Plug the flash drive into a USB port on your computer. Wait for Windows to recognize it — you'll see it appear in File Explorer as a removable drive with a name like "USB Drive" or "Kingston" (whatever the manufacturer called it).
Right-click on the drive name in File Explorer and select Format from the menu. A dialog box will open asking you to name the drive and choose a file system. Leave the file system as NTFS (the Windows default) unless you need it to work on older devices or Macs, in which case choose FAT32. You can name the drive anything you want — call it "Backup" or "Media" or leave the default name.
Click Start and then OK when Windows warns you that formatting will erase everything. The process usually takes 30 seconds to 2 minutes depending on the drive's size. When it finishes, the drive is blank and ready to use.
How to format a flash drive on Mac
Plug the flash drive into a USB port. Open Disk Utility — you can find it by clicking the Finder icon, going to Applications, then Utilities, then double-clicking Disk Utility. You can also search for "Disk Utility" using Spotlight (press Command and Space at the same time).
In the left sidebar, click on your flash drive's name. Make sure you select the drive itself, not a partition or folder inside it. Click the Erase button at the top of the window. A dialog will ask you to name the drive and choose a format. For a drive you'll use on both Mac and Windows, choose MS-DOS (FAT). For Mac only, choose APFS or Mac OS Extended.
Click Erase again to confirm. The process takes less than a minute. When it finishes, your flash drive is empty and ready to use.
How to format a flash drive on Linux
Plug the flash drive in and open your file manager. Right-click on the flash drive and look for an option called Format or Format Drive. If your file manager has this option, click it, choose a name and file system (FAT32 works on all devices), and confirm.
If your file manager does not have a format option, open a terminal window and type the following command, replacing "sdX" with your drive's actual name (you can find this by typing lsblk first to see all connected drives):
sudo mkfs.vfat /dev/sdX
Press Enter and type your password when prompted. The drive will be formatted in seconds. If you are not comfortable with the terminal, use GParted instead — search your application menu for "GParted", select your flash drive, right-click the partition, and choose Format.
What to do before you format
Formatting erases everything on the drive permanently. Before you start, copy any files you want to keep to your computer's hard drive or another storage device. Open the flash drive in your file manager, select all files (Ctrl+A on Windows or Linux, Command+A on Mac), and drag them to a folder on your computer.
If the drive has files you cannot access or that seem corrupted, you may still want to back them up before formatting — sometimes a corrupted file system prevents you from reading files, but the data is still there. After formatting, you lose the chance to recover them.
After formatting: what happens next
Once formatting is complete, the flash drive is blank and works like a new drive. You can copy files to it the same way you would copy files to any folder — drag and drop, or right-click and select Copy, then paste into the drive.
The drive is now ready to use for storage, backups, or to give to someone else. If you are giving it away or selling it, formatting is the right step because it removes your old files from the drive. Keep in mind that forensic recovery tools can sometimes recover data from a formatted drive if someone has the skill and equipment to do so — if you need military-grade security, you would need specialized software that overwrites the drive multiple times, but for normal use, a single format is sufficient.
Frequently Asked Questions
Can I recover files after formatting a flash drive?
Files deleted normally can sometimes be recovered with data recovery software, but once you format the drive, recovery becomes much harder. Standard recovery tools usually cannot find formatted files. If you accidentally formatted a drive with important files, stop using it immediately and contact a data recovery service — the longer you use the drive, the more the old data gets overwritten.
Why does my flash drive show as read-only and won't let me format it?
Some flash drives have a physical write-protect switch on the side — check for a small slider and flip it to the unlocked position. If there is no switch, try formatting on a different computer. If the drive still will not format, it may have a hardware problem or corrupted firmware, and you may need to contact the manufacturer for a replacement or recovery tool.
What file system should I choose when formatting?
Use FAT32 if you want the drive to work on Windows, Mac, and Linux computers. Use NTFS if you only use Windows and want to store files larger than 4 GB. Use APFS or Mac OS Extended only if you use Mac exclusively. For most people, FAT32 is the safest choice because it works everywhere.
How long does formatting take?
Most flash drives format in under 2 minutes. Larger drives (64 GB or more) may take 5 to 10 minutes. If formatting takes longer than 15 minutes, the drive may have a hardware problem — try unplugging it, waiting 10 seconds, and plugging it back in to start over.
Do I need to eject the drive after formatting?
Yes. After formatting is complete, right-click the drive in your file manager and select Eject or Safely Remove Hardware before unplugging it. This tells your computer to finish writing any remaining data and prevents corruption. On Mac, you can also drag the drive icon to the trash — this ejects it rather than deleting files.