How To Safely Eject A USB Drive In Windows 11 (2026)
The quickest way to eject a USB drive in Windows 11 is to right-click it in File Explorer and select Eject.
Wait for the Safe To Remove Hardware notification, then unplug the drive.
This guide also covers the taskbar icon, Settings, Disk Management, and the removal policy that decides whether you need to eject at all.
Quick answer: eject a USB drive
| Step | What to do |
|---|---|
| 1 | Finish copying, then close any file open from the drive |
| 2 | Open File Explorer and select This PC |
| 3 | Right-click the USB drive and select Eject |
| 4 | Wait for the Safe To Remove Hardware notification |
| 5 | Unplug the drive |
Why you should eject first
Microsoft advises safely removing USB flash drives and external hard drives before you disconnect them, to avoid losing data.
ElevenForum explains the reason: Windows may still be reading from or writing to the device when you pull it out.
Eject from File Explorer
- Press Windows + E to open File Explorer.
- Select This PC, or find the drive in the left pane.
- Right-click the removable drive and select Eject.
- Wait for the Safe To Remove Hardware notification.
ElevenForum and How-To Geek both list this as one of the main methods.
Eject from the taskbar icon
- Right-click the Safely Remove Hardware and Eject Media icon in the system tray.
- If you cannot see it, select Show hidden icons (the arrow) and right-click it there.
- Select Eject followed by the name of your device.
- Wait for the Safe To Remove Hardware notification, and the device will disappear from the menu.
Microsoft says this is its first-listed method for Windows 11.
If the taskbar icon is missing
- Right-click the taskbar and select Taskbar settings.
- Expand Other system tray icons.
- Scroll to Safely Remove Hardware and Eject Media and turn it On.
Microsoft notes that the icon may not appear when no removable device is connected, or when Windows does not recognize the device.
Remove the device in Settings
- Select Start, then Settings > Bluetooth & devices > Devices.
- Under Other devices, find the drive and select it to expand it.
- Next to Remove this device, select Remove.
- Unplug the drive once it leaves the Other devices list.
Microsoft says to make sure you select the Remove button directly under the right device.
ElevenForum and How-To Geek describe a slightly different layout, where you select the three-dot More button next to the drive, choose Remove device, and confirm with Yes.
Both layouts lead to the same result, so use whichever one your build of Windows 11 shows.
Eject from Disk Management
- Right-click Start and select Disk Management.
- Right-click the disk number of the removable drive and select Eject.
This is the fifth method on ElevenForum’s list, and How-To Geek places it fourth.
What to check before you unplug
| Check | Why |
|---|---|
| The Safe To Remove Hardware notification appeared | Microsoft says the device also disappears from the eject menu at that point |
| No file from the drive is open | Windows may still be reading or writing, according to ElevenForum |
| You picked the right device | Microsoft says to select the Remove button directly under the correct device |
Which method to use
| Method | Best when |
|---|---|
| File Explorer | You already have This PC open |
| Taskbar icon | You want one click from anywhere |
| Settings | The drive is missing from File Explorer or the tray |
| Disk Management | You are already checking the disk |
Quick removal or Better performance
Windows can treat each drive in one of two ways, and ElevenForum explains the difference.
| Policy | What it means |
|---|---|
| Quick removal (default) | Windows keeps the drive ready to unplug, and does not cache writes |
| Better performance | Windows caches writes to speed things up, so you must eject before unplugging |
ElevenForum warns that unplugging a Better performance drive without ejecting can leave cached writes unfinished and put your data at risk.
It also says that Quick removal can slow overall performance because write caching is off.
Do you always need to eject?
ElevenForum says that if a drive uses Quick removal, you can unplug it without using Safely Remove Hardware.
Microsoft still recommends safe removal for flash drives and external hard drives, so ejecting is the safer habit.
The habit costs a few seconds, and it protects you if a drive has been switched to Better performance without you noticing.
Change the removal policy
- Sign in as an administrator and open Device Manager.
- Expand Disk drives and double-click the removable drive.
- Open the Policies tab.
- Choose Quick removal or Better performance, then select OK.
Our guide to updating a driver in Windows 11 shows another job you can do in Device Manager.
Eject with a command
How-To Geek lists a Windows Terminal route for people who prefer commands.
- Open Windows Terminal and run diskpart.
- Run list volume and note the volume number of your USB drive.
- Run select volume with that number.
- Run remove all dismount.
How-To Geek says this removes the drive letter and dismounts and takes the volume offline.
The old Safely Remove Hardware window
ElevenForum also lists a Run command that opens the older Safely Remove Hardware dialog.
rundll32 shell32.dll,Control_RunDLL hotplug.dll- Press Windows + R, paste the command, and select OK.
- Select the removable device in the list and select Stop.
- Select the device again to confirm, then select OK.
The author of that page could not get this method to work reliably, so use File Explorer or the taskbar icon first.
If the drive is not listed to eject
A drive that Windows cannot see will not appear in any of these menus.
See our guide to fixing a USB drive that is not showing up, or formatting a USB drive if you want to wipe it.
Related Windows 11 guides
- How to fix a USB drive not showing up in Windows 11
- How to format a USB drive in Windows 11
- How to transfer photos from iPhone to a Windows PC