To eject a USB drive in Windows 11, open File Explorer, right-click the drive under This PC, and choose Eject. Or click the ^ (Show hidden icons) arrow on the taskbar, click the Safely Remove Hardware and Eject Media icon, and choose Eject next to your drive. When Windows says it’s safe to remove the hardware, unplug the drive. If you see “Problem ejecting USB mass storage device,” close any files or apps using the drive and try again.
This guide covers every way to eject a USB drive, what to do when Windows says the device is in use, whether you really need to eject, and how to change the drive’s removal policy.
Method 1: Eject from File Explorer
- Press Windows + E to open File Explorer.
- Click This PC in the left pane.
- Right-click the USB drive and choose Eject (you may need Show more options on some versions).
- Wait for the drive to disappear, then unplug it.
Method 2: Eject from the taskbar
- Click the ^ arrow in the notification area of the taskbar.
- Click the Safely Remove Hardware and Eject Media icon (a USB plug with a check mark).
- Click Eject next to your drive’s name.
- Unplug the drive when you see the Safe to Remove Hardware message.

If the icon isn’t in the hidden icons area, go to Settings > Personalization > Taskbar > Other system tray icons and turn on Windows Explorer (Safely Remove Hardware), depending on your version.
Method 3: Eject with a shortcut
Press Windows + R, type RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll, and press Enter to open the Safely Remove Hardware window. Select the drive and click Stop. You can save this command as a desktop shortcut.
Fix “Problem ejecting USB mass storage device”
- Close files and apps – save and close documents, photos, videos, and File Explorer windows open on the drive.
- Wait for transfers – make sure copying has finished.
- Check background apps – antivirus scans, backup tools, cloud sync, and indexing can hold the drive. Pause them briefly.
- Find the process – open Event Viewer > Windows Logs > System and look for a Kernel-PnP warning (event ID 225) that names the app blocking the eject. Or open Resource Monitor (resmon), go to CPU > Associated Handles, and search for the drive letter.
- Sign out or restart – if nothing else works, sign out or shut down the PC, then unplug the drive.
Do you really need to eject?
Since Windows 10 version 1809, USB drives use Quick removal by default. Windows doesn’t cache writes to the drive, so you can usually unplug it once transfers finish and files are closed. Ejecting is still the safest habit, especially for external hard drives and drives set to Better performance.
Change the removal policy
- Right-click Start and open Disk Management.
- Right-click the USB disk’s label on the left (for example, Disk 1) and choose Properties.
- On the Policies tab, choose Quick removal (safer to unplug) or Better performance (faster writes, but you must always eject first).
- Click OK.
Troubleshooting
- Drive doesn’t show Eject – it may be an internal-style drive in an enclosure. Use the Safely Remove Hardware icon instead.
- Drive keeps reappearing – unplug it right after ejecting; some drives remount if left connected.
- Files are corrupted after unplugging – run chkdsk E: /f (use your drive letter) and always eject in the future.
Frequently asked questions
Is it bad to unplug a USB drive without ejecting?
With Quick removal and no files open or copying, it’s usually fine. Ejecting ensures all data is written, so it’s the safer choice.
Does this work for external hard drives and SD cards?
Yes. Eject them the same way.
How do I eject a USB drive on Windows 10?
The steps are the same: right-click it in File Explorer and choose Eject, or use the taskbar icon.

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.