Remove the Mac's hidden files from a card or drive, then eject it

Clean Eject

Instead of fighting ghost ._ files in your car stereo, guessing which app locked a memory card, or ejecting dock drives one by one, Clean Eject cleans hidden macOS files, names busy apps, and ejects whole groups with one shortcut.

Buy Clean Eject · $19

Buy once, use forever. Up to 3 computers you own (license). Tax included. No free trial, full refund if it's not right for you.

macOS 14 or later · Apple silicon and Intel

Latest version 1.4.1, released November 22, 2026

The Clean Eject window. A sidebar has Cards and drives selected, then Everything external under Eject Together and a New Group button. Next to it, a Plugged in line saying to click Clean & Eject before unplugging a card, then NO NAME, a FAT32 memory card with a bar of how full it is and Eject and Clean & Eject buttons, and TRAVEL, an APFS drive marked Eject only, with Eject All at the bottom

Without Clean Eject

  • Your car stereo, TV, or Windows PC fills up with ghost ._ copies and .DS_Store files that the Finder hides from you.
  • A memory card refuses to eject with "one or more programs may be using it", leaving you to guess which app to quit.
  • Ejecting three drives on a desk dock means clicking them one by one every evening before pulling the cable.
  • Terminal commands risk deleting your own files and still cannot tell you when Time Machine is mid-backup.

With Clean Eject

  • Click Clean & Eject to review every hidden file macOS left on the drive, remove them on confirmation, and eject safely.
  • See the exact app and open filename locking a drive, click Quit right in the window, and retry without guessing.
  • Save your desk dock drives as a group and eject all of them from any app with ⌃⌥⌘E until every drive reads Safe to unplug.
  • Get a clear notice when Time Machine is backing up, leave Mac-formatted drives untouched, and protect your own files.

Hidden Mac clutter and silent eject errors

Copy songs to a USB stick on your Mac, plug it into your car, and the stereo lists songs you never copied. They are called ._Song.mp3 and refuse to play, while TVs show broken photos and Windows PCs show .DS_Store in every folder.

Your Mac writes all of these files and hides them from you, even when you press ⇧⌘. in the Finder. When a memory card will not come out, macOS only says “one or more programs may be using it” without naming the app.

If three drives live on your desk dock, you also end up clicking eject on each one every evening before pulling the cable.

See Clean Eject in 30 seconds

Platform
macOS 14+
Native Mac app for Apple silicon and Intel Macs. Runs in your menu bar and responds to a global shortcut.
Privacy
100% local
Nothing on your drives ever leaves your Mac. No accounts, no analytics, and online only to check for updates.
Drive safety
FAT32 & exFAT
Cleans only verified macOS files on drives meant for other devices. APFS and Mac OS Extended drives offer Eject only.
Pricing
$19 one-time
Tax included, no subscription. Signed with Apple Developer ID, notarized by Apple, and includes automatic in-app updates.

Clean a drive before it leaves your Mac

Copy your files in the Finder as usual, then open Clean Eject or click its eject icon in the menu bar. Click Clean & Eject on a FAT32 or exFAT card or USB stick, review the exact files macOS left behind grouped by kind and size, and confirm.

Nothing is deleted until you click Clean & Eject in the review window. You can also tick Empty this drive’s Trash when you want .Trashes cleared, or tick Keep the Mac from indexing this drive so Spotlight stops recreating its index on it.

The Clean NO NAME window: the Mac left 55 files on NO NAME (729 KB), listed as Folder view settings, Copies of file details, Log of file changes, Temporary files, and Spotlight search index marked Stays: macOS protects it, with unticked boxes to empty the drive's Trash (12 files, 3.1 GB) and to keep the Mac from indexing the drive

From Clean & Eject to safe to unplugClean Eject looks for the Mac's hidden files on the drive and shows them. When you confirm, it removes them and ejects the drive. If an app is using the drive, it names the app and its files, quits it when you click Quit, and tries again.Clean & EjectCancelEjectedIn useQuit, then Try AgainClick Clean & EjectSee the files theMac leftRemove themNothing is removedEjectSafe to unplugThe apps and theirfiles, with Quit

Here is what Clean & Eject removes, and each kind has its own checkbox in Clean Eject → Settings…:

In the appOn the driveWhat it is
Folder view settings.DS_StoreThe Finder’s note of how a folder looks. It comes along with a folder you copy from the Mac
Copies of file details._IMG_0042.JPG, ._Song.mp3A twin of each file that has extra details on the Mac, like when it was last opened and with which app
Log of file changes.fseventsdA record of what changed on the drive, kept by the Mac
Temporary files.TemporaryItemsFiles apps saved for a moment while they worked
Saved versions of documents.DocumentRevisions-V100Older versions of documents edited on the drive
AirPort disk file.apdiskLeft by AirPort and Time Capsule disks
This drive’s Trash.TrashesFiles you moved to the Trash from this drive. Only when you tick the box

macOS protects .Spotlight-V100 from every app, so Clean Eject marks it as Stays: macOS protects it instead of pretending to remove it. For APFS and Mac OS Extended drives, where Mac files belong, Clean Eject offers Eject only.

The NO NAME is safe to unplug window, with a green Ejected badge, saying Removed 55 files the Mac left (729 KB) and NO NAME's Trash still has 12 files (3.1 GB)

See which app is locking a drive

When a card or stick refuses to eject, Clean Eject asks macOS which apps have files open on it and lists every app with the exact filename and a Quit button. Click Quit, then click Try Again so Clean Eject cleans any last hidden file the app wrote on exit before ejecting.

I tested this with a video open in QuickTime Player. macOS took between 6 and 20 seconds to refuse the eject, then the window named QuickTime Player and the video, Quit closed it, and Try Again ejected the card.

The NO NAME couldn't be ejected window: NO NAME is still in use, QuickTime Player has VID_0141.MP4 open and Preview has IMG_0042.JPG and IMG_0043.JPG open, each with a Quit button, plus Force Eject…, Cancel and Try Again

When macOS itself is holding a drive, often Spotlight indexing it, no app is listed and Clean Eject tells you to wait a few seconds and click Try Again. Force Eject… is kept last behind a clear warning about unsaved work and copies in progress.

Eject every drive on your dock at once

Under Eject Together, Everything external shows one card per physical external drive and never lists your Mac’s built-in disk. Save your regular drives as a group like “Desk Dock”, and Clean Eject remembers them by volume rather than port so plugging an SSD into another port tomorrow still works.

The Desk Dock group in Clean Eject: In this group lists Footage and Projects and Archive, each with a checked Eject box and a Remove button; under Other drives plugged in, the line Not in this group, so this group never ejects them, and EOS_DIGITAL with an Add to Group button; at the bottom Delete Group… and Eject 2 Drives

Before unmounting anything, Clean Eject checks open files on each drive so busy drives show Still in use with the blocking app and filename. If Time Machine is backing up to a drive, its card shows Backing up so you can wait or skip the backup, and a multi-partition drive remounts its first partition if the second one is busy.

Clean Eject after ejecting the Desk Dock group: 1 of 2 drives are safe to unplug. 1 isn't yet. Footage has an orange Still in use pill and the line Preview and tail are using Footage, then Preview, Has open: frame-0412.png, with a Quit Preview button, and tail, Has open: render.log. Projects and Archive has a green Safe to unplug pill. At the bottom Force Eject…, Leave Plugged In and Try Again

Once every drive finishes, the window confirms you can unplug the dock and drives. Press ⌃⌥⌘E from any app even with the window closed, or trigger Eject Everything External and your saved groups from the menu bar.

Clean Eject with a green check and All 2 drives are safe to unplug. Footage, force ejected, and Projects and Archive each have a green Safe to unplug pill, with a Done button

In Clean Eject → Settings… → Eject, you can record your own global shortcut, pick whether it ejects everything external or one saved group, turn on Open at login, and choose whether disk images appear.

The Eject tab of Clean Eject Settings: Open at login, the keyboard shortcut ⌃⌥⌘E with a Clear button, Ejects set to Everything external, and Show disk images

Finder vs. Clean Eject

Pressing ⇧⌘. in the Finder shows .fseventsd and .Spotlight-V100, while ._ and .DS_Store files stay hidden so you cannot even select them. Free menu bar ejectors unmount everything at once without remembering dock groups or naming the app blocking a drive.

In the FinderClean Eject
See the hidden files⇧⌘. shows two folders at the top of the drive, never the ._ and .DS_Store filesListed by kind, with how many and how much space
Remove themNothing to select, since the Finder doesn’t list themOne click, after you confirm
A file of yours whose name starts with ._Looks the same as the Mac’sStays: only the Mac’s are removed, checked by what’s inside
Spotlight’s folderCan’t be removedStays, and the Mac can be told not to make it again
“One or more programs may be using it”Guess which app, quit things until it worksThe apps and their files, with a Quit button each
Three drives on a dockThree clicks in the sidebar, or select them on the desktopEject 3 Drives, or ⌃⌥⌘E from any app
Only some of themPick them by hand every timeA saved group, recognized on any port
Time Machine backing up“One or more programs may be using it”“Time Machine is backing up to Backup right now”
Knowing when to pull the cableWait until each icon disappearsSafe to unplug on every drive
  1. Clean & Eject with preview

    Groups hidden .DS_Store, ._, .fseventsd, .TemporaryItems, .DocumentRevisions-V100, and .apdisk files by kind and size before deleting anything.

  2. Protects your own ._ files

    Checks file contents instead of just names, so your own files starting with ._ stay safe. The drive Trash stays untouched unless you tick it.

  3. Names apps locking a drive

    Lists every app and open filename blocking an eject, with a Quit button for each and a clean retry once the app closes.

  4. Saved dock groups & shortcut

    Remember desk dock drives by volume instead of port, then eject everything external or a saved group with one click or ⌃⌥⌘E.

  5. Time Machine & partition aware

    Shows when Time Machine is actively backing up instead of a vague error, and remounts the first partition if the second one is busy.

  6. Keep Spotlight away

    Flags the macOS-protected .Spotlight-V100 folder clearly and lets you write a small empty file so Spotlight stops indexing that drive.

Who it’s for

  • Drivers and families using USB sticks in cars or on TVs. Copy road-trip music or holiday photos without car stereos listing broken ._ twins or TVs showing grey unsupported files between real photos.
  • People sharing drives with Windows PCs, print shops, or classrooms. Hand over a USB stick or open presentation slides on a projector without .DS_Store clutter and duplicate ._ files in every folder.
  • Photographers and video makers swapping camera cards. When a card refuses to eject after you previewed a clip or photo, see which app holds it, quit it, and get the card back in the camera.
  • Laptop users with a desk dock and external drives. Save your backup drive, projects SSD, and card reader as a group, press ⌃⌥⌘E at the end of the day, and pull the cable once every drive reads Safe to unplug.

Technical specs & requirements

Requirements
macOS 14 Sonoma or later on Apple silicon and Intel Macs. Signed with Flavio's Apple Developer ID and checked by Apple.
Install & updates
Download from your purchase page, unzip, and drag Clean Eject to Applications. Updates check automatically, or run Clean Eject → Check for Updates… and click Install and Relaunch.
Supported drives
Clean & Eject runs on cross-platform formats like FAT32 and exFAT. APFS and Mac OS Extended drives offer Eject only. Time Machine disks are excluded from cleaning and supported in Eject Together.
Privacy & safety
Nothing on your drives leaves your Mac, with no accounts or analytics. Nothing runs automatically when you plug a drive in, and removed files do not go to the Trash.
What it does not do
Cannot delete macOS-protected .Spotlight-V100 folders or inspect drives held by macOS itself. Never touches your system or home disk, network drives, or disk images unless Show disk images is enabled. Supports one global shortcut, with other groups available in the menu bar.
Independence
Clean Eject is an independent app built by Flavio. It is not made by, affiliated with, or endorsed by Apple.
Docs & support
Read the Clean Eject documentation for every setting and what to do when a drive will not eject.

Guides & workflows for Clean Eject

App license

One purchase, one person. Perpetual license ("buy once, use forever") for personal and commercial work on up to 3 computers you own.

Updates & refunds. Includes updates and re-downloads anytime from the support portal. If the app isn't right for you, write to flavio@flaviocopes.com for a refund.

Not allowed. Don't share, resell, or redistribute the app download or update key.

Source code. Compiled app only (source code is not included).

Read the full license page ↗

Clean Eject screenshot at full size