Windows sometimes refuses to eject a USB flash drive or external hard drive, saying the device is still in use, or the eject icon simply isn't there. Pulling the drive out anyway can cost you data, so it's worth finding out what's holding on to it. The settings, policies and tools below come from Microsoft's documentation, credited at the end, and the order of the steps is our advice.
Why ejecting matters
Microsoft's advice is: "To avoid losing data, always safely remove hardware devices like USB flash drives or external hard drives before disconnecting them." How much risk you take by skipping this depends on the drive's removal policy. Microsoft explains that since Windows 10 version 1809 the default policy is "Quick removal", which keeps the device "ready to remove at any time" because Windows doesn't cache writes to it. If a drive is set to "Better performance", Windows can cache writes, and Microsoft warns that if you disconnect it without safe removal, "you risk losing data". Our guide to changing the USB drive removal policy explains how to check and switch the setting.
Step 1: Close everything that might be using the drive
The usual reason Windows says a drive is still in use is an open file. Save and close any documents, photos or videos opened from the drive, close File Explorer windows showing it, and wait for any copy or move to finish. Then try ejecting again from the Safely Remove Hardware and Eject Media icon in the system tray, or from File Explorer by right-clicking the drive and selecting Eject.
Background apps can also keep a drive busy, including antivirus scans, backup and sync tools, photo importers and media players that index the drive. Pause or close them and try again.
Step 2: Find the eject icon if it's missing
Microsoft's steps are to right-click the Safely Remove Hardware and Eject Media icon in the system tray, selecting Show hidden icons first if it isn't visible, and then choose Eject for your device. If the icon still isn't there, right-click the taskbar, select Taskbar settings, expand Other system tray icons and make sure Safely Remove Hardware and Eject Media is turned on.




