How to Safely Eject, Format or Erase a USB Drive

Updated on November 6, 2026

Use Eject when you want to unplug a USB drive and keep its files. Use Format when you want an empty drive for reuse. If you’re giving away a drive that held sensitive files, check how that specific drive can be securely erased.

USB flash drive removal and formatting

Choose the right action for your USB drive

Your goal What to do
Unplug the drive after using it Wait for transfers to finish and eject it.
Clear the drive for ordinary reuse Back up anything you need, then format it.
Dispose of a drive that held sensitive files Use a verified sanitization method for that model, or keep the drive until you can dispose of it securely.

How to safely eject a USB drive

  • Windows: Close files on the drive. In the taskbar, open Safely Remove Hardware and Eject Media, select your USB drive and wait for the message that it’s safe to remove. Check the hidden icons arrow if you don’t see it. Microsoft’s eject steps
  • Mac: Close files on the drive. In Finder, click the Eject button next to the drive’s name and wait for it to disappear before unplugging it. Apple’s storage-device guide

If the drive is busy, stop copies and close apps using it, then try again. If you still can’t eject it, shut down the computer normally before unplugging it.

How to format a USB drive for reuse

Back up the files first and confirm the drive’s name and capacity. Formatting replaces the file system and removes access to the drive’s existing files.

  • Windows: Open File Explorer > This PC, right-click the USB drive and choose Format. Select the file system, leave the allocation size at its default unless you need a specific one, then start the format.
  • Mac: Open Disk Utility, choose View > Show All Devices, select the USB drive and click Erase. Choose the format and confirm. Apple’s Disk Utility steps

Choose exFAT if you need to write to the drive in both current Windows and macOS. For older devices, check the manual for supported formats. If the drive is read-only, see our guide to USB write protection.

How to handle sensitive files

A quick format leaves data that recovery software may find. USB flash drives can also move data between memory blocks, so a software overwrite may miss blocks the drive has set aside. Check the manufacturer’s documentation for a sanitization feature you can verify. For sensitive data on a drive without one, retain the drive or use a trusted media destruction service. NIST’s media sanitization guidance

Frequently asked questions

Can I unplug a USB drive without ejecting it?

Windows’ Quick removal policy allows unplugging without the eject command once writes have finished. Better performance can cache writes and requires safe removal. When you’re unsure which policy is in use, eject the drive. Microsoft’s removal policy guide

Does a quick format securely erase files?

A quick format prepares the drive for reuse. Old data may still be recoverable, so check the device’s sanitization options before passing on a drive with sensitive files.

Which USB format works on Windows and Mac?

Choose exFAT for current Windows and macOS. If the drive also has to work in a TV, camera or another device, check which formats that device accepts.