How to fix "Problem Ejecting USB Mass Storage Device" on Windows 10 and 11
Windows tells you "Problem Ejecting USB Mass Storage Device. This device is currently in use" when a background process still has the drive open. The fix is to release that connection. Below are nine methods, ordered from quickest to most involved.
Problem Ejecting USB Mass Storage Device. This device is currently in use. Close any programs or windows that might be using the device, and then try again.

Close all programs
- Close all programs.
-
Try to safely eject your USB device.

Refresh the desktop
- Right-click your desktop.
-
Click Refresh.

-
Try to safely eject your USB device.

Empty Recycle Bin
- Right-click the Recycle Bin.
-
Click Empty Recycle Bin.

-
Try to safely eject your USB device.

Restart Windows Explorer in Task Manager
- Right-click the Start button (Windows logo) on the taskbar or right-click an empty space on the taskbar.
-
Click Task Manager.

- In the Processes tab, right-click Windows Explorer.
-
Click Restart.

- Close Task Manager.
-
Try to safely eject your USB device.

Eject USB drive using the Settings app
- Right-click the Start button (Windows logo) on the taskbar.
-
Click Settings.

-
Click Bluetooth & devices in the left menu.

-
Click Devices.

-
Click the USB drive you want to eject.

-
Click Remove.

- Click Yes to confirm.
- Remove your USB drive.
Log out and log back in
Logging out of your PC will close all active files and programs, including those accessing the external USB drive. You'll need to save and close everything first, then reopen it all after logging back in.

Restart your PC
Most of the time, it's faster to restart your PC than to find a solution to the problem. You'll need to save and close everything, wait for the restart, and reopen your programs.

Uninstall the disk drive in Device Manager
- Right-click the Start button (Windows logo) on the taskbar.
-
Click Device Manager.

-
Double-click Disk drives to expand.

- Right-click the USB drive you want to eject.
-
Click Uninstall device.

-
Click Uninstall in the confirmation window.

- Once the uninstall finishes, unplug the USB drive.
Uninstall USB Mass Storage Device in Device Manager
- Right-click the Start button (Windows logo) on the taskbar.
-
Click Device Manager.

-
Double-click Universal Serial Bus controllers to expand.

- Right-click USB Mass Storage Device.
-
Click Uninstall device.

-
Click Uninstall in the confirmation window.

- Once the uninstall finishes, unplug the USB drive.
Related:
Fix: The file is too large for the destination file system
USB flash drive shows less space than actual: how to fix it
Fix "This folder is empty" on a USB drive in Windows 10 & 11