Eject a flash drive from a Mac in Finder before pulling it out: select the drive, then choose File > Eject. Wait until its name disappears from Finder. That lets macOS finish using the drive before you disconnect it.
The same method works on a MacBook, iMac, or Mac mini, with Intel or Apple silicon. If macOS says the disk is in use, deal with that warning before unplugging it. Finder may be hiding a drive that isn't listed in its sidebar.
In this guide
Finish the transfer, then eject the drive in Finder
Save any documents you're editing on the flash drive and wait for file-copy progress windows to finish. Closing a document without saving can leave its latest changes behind, even when the drive itself ejects normally.
Open Finder from the Dock. Look in Locations in the sidebar for the flash drive, then click its name once. Select the drive itself, rather than a document stored inside it.

Choose File > Eject from the menu bar. This ejects the disk you've selected. If the command isn't available, make sure you've selected the external drive, rather than an internal Mac volume or an ordinary folder.
Finder also has an eject control beside the device's name. It ejects the drive too. Apple's storage-device instructions describe both methods.
Wait for the drive to disappear from Locations. Then pull out the flash drive or disconnect its cable. An open Finder window showing the drive's contents isn't a reason to unplug it before the eject finishes.
I'd use Finder's File menu the first time. It makes the selected disk and the action clear, especially when several external drives have similar names. After that, the sidebar control is convenient.
Find a drive that isn't visible in the sidebar
A missing sidebar entry doesn't always mean the Mac has lost the drive. Finder can hide external disks from view. Open Finder > Settings, choose Sidebar, and select External disks under Locations.
On older macOS versions, the same Finder window is named Preferences rather than Settings. Use Finder's own menu beside the Apple menu. These options aren't in System Settings.

Check Locations again, expanding it if the list is collapsed. Once the drive appears, select it and use File > Eject. The setting changes what Finder displays; it doesn't format or erase the device.
The disk's desktop icon also works when its sidebar entry is hidden. Select the removable disk's desktop icon and use the File menu. Check that it's the disk itself, rather than an alias to a folder.
If the drive never appears or opens, follow the Mac external-drive mounting checks. A connection or mounting problem needs more than an eject command.
Use the desktop icon without deleting the files
macOS also lets you eject a mounted drive by dragging its desktop icon onto the Dock's Trash. For a disk, this action ejects the device. It doesn't delete all the documents stored on it.
Drag the drive's icon, rather than a file inside the drive. Dragging a document instead acts on that document and can place it in the Trash. Check which icon you're dragging before you release it.
Release the disk icon on the Dock's eject target and wait for the desktop icon to disappear. Then disconnect the device. Use this route when the disk is visible on the desktop but Finder's sidebar is hidden.
Choose one eject method, then watch for it to finish. Clicking the control repeatedly won't make macOS finish using the files any faster. If a warning appears, read it before doing anything with the connector.
Handle a disk-in-use message without forcing it out
A disk-in-use warning means an app or another signed-in user may still be using a file on the flash drive. Keep the drive connected. Save and close documents on it, then quit the app that opened them and try ejecting again.
Check more than the frontmost window. A photo, video, spreadsheet, or PDF opened earlier can still be open in another app. Save any changes before quitting the app. That stops it using the file.
On a shared Mac, another user's session can keep the disk busy. Ask them to finish using the drive and log out. Switching to your account keeps their session active; their apps don't close until they log out.
If the warning remains, save your other work and choose Apple menu > Log Out. Log back in and try the eject command again. Logging out closes your apps, including ones that may still be using the disk in the background.
When that still fails, choose Apple menu > Shut Down. Wait until the Mac has finished shutting down, disconnect the drive, then start the Mac again. Use shutdown when the normal eject command still won't work.
Separate unplugging from erasing or fixing a drive
Ejecting ends the current connection. It doesn't change the drive's format, repair damaged files, or remove its contents. Reconnecting a healthy drive should make it available in Finder again.
Don't choose Erase Disk to release a stubborn drive. Erasing is a separate operation that removes data. If the disk keeps reporting damaged files, save anything you can still read before deciding how to repair it.
Windows uses different removal controls. For a flash drive shared between computers, the USB memory-stick guide explains how removal works on Windows, where the rules differ from macOS.
If normal shutdowns are regularly needed to release the same drive, ask Apple Support about repeated disk-in-use warnings. Give them the macOS version, the exact warning, and which app last used the disk.
For a device that also disconnects during copies or fails on another computer, contact its manufacturer about the connection or hardware. Keep an independent copy of important files before continuing to rely on that drive.
The Short Version
Select the flash drive in Finder, choose File > Eject, and disconnect it after its name disappears. For a disk-in-use warning, close its documents and apps. If logging out doesn't release it, shut down the Mac before unplugging it.
Checked December 3, 2026.







