Close all open windows and programs. If you leave any programs running, Windows may be unable to remove storage devices.
Click on the circular system tray button in the lower-right corner of your desktop to expand all of the system tray icons.
Right-click on the icon with the green arrow and choose the "Safely Remove Hardware" option. A new window will appear with a list of the storage devices currently connected to your computer.
Highlight the item that you want to remove. In most cases, it will be labeled as "USB Mass Storage Device."
Press the "Stop" button at the bottom of the window.
Highlight "USB Mass Storage Device" in the pop-up window again and click "OK."
Wait until you receive confirmation that the storage device has been safely removed. After that, you can unplug your USB flash drive or external hard drive.