Deleted files still using space on an external drive: the hidden Trash on a Mac
You connect an external SSD or USB flash drive to your Mac, select a 40 GB folder of video renders or raw photo backups, and hit Command-Delete to move it to the Trash. The folder vanishes from Finder immediately. But when you check the drive's free space in Finder's status bar or Disk Utility, the available space has not changed by even a single megabyte.
If you eject the drive and plug it into a Windows PC or smart TV, the drive still reports itself as nearly full, yet the files are nowhere in sight. On macOS, dragging a file on an external drive to the Trash does not delete it or free space. It simply moves the file into a hidden directory residing on that external drive itself.
Why macOS uses per-volume hidden Trashes
When you delete a file on your primary internal drive (Macintosh HD - Data), Finder moves the item into your user account's local trash folder at ~/.Trash. This operation is an instantaneous filesystem rename: only the directory catalog pointer changes, which takes less than a millisecond regardless of whether the file is 10 KB or 100 GB.
However, macOS cannot perform an instantaneous pointer rename across two distinct physical volumes or partitions. If macOS tried to move external drive files to your Mac's internal ~/.Trash folder, it would be forced to copy the entire file over the USB or Thunderbolt bus to your internal SSD, and then erase the original blocks on the external drive. That would cause three major problems:
- Wasted time: Trashing a 50 GB file over USB 3.0 would take several minutes of continuous reading and writing instead of an instant click.
- Internal SSD exhaustion: If your internal Mac drive had only 10 GB of free space, you would be blocked from trashing a 30 GB file on an external drive.
- Unnecessary SSD wear: Writing tens of gigabytes to your internal flash storage just to throw them away increases NAND write cycles.
To prevent this, macOS creates a hidden directory called .Trashes in the root directory of every mounted external volume (e.g., /Volumes/MyDrive/.Trashes). When you hit Delete, the file is simply renamed into that hidden volume folder, taking a fraction of a second. But the storage blocks remain 100% occupied on the external drive.
The user ID folder: why files stay trapped
Inside /Volumes/MyDrive/.Trashes, macOS isolates files by User ID (UID). On macOS, the first administrative user created is always assigned UID 501 (subsequent accounts get 502, 503, etc.):
/Volumes/MyDrive/.Trashes/501/YourDeletedFolder/Because the folder starts with a period (.), Finder hides it by default. When the drive is mounted on your Mac while you are logged in as UID 501, Finder aggregates the contents of ~/.Trash and /Volumes/MyDrive/.Trashes/501 into the unified Trash can icon in your Dock.
The trap occurs when you eject the drive before emptying the Trash. Once the drive is unmounted, Finder's Trash can icon no longer displays those files. Yet those 40 GB of files remain physically written to the external drive's flash memory. When you plug the drive into another Mac where your user UID is 502, or a Windows machine that ignores macOS UID permissions, the files are either invisible or locked inside a .Trashes directory, permanently occupying storage.
Read-only inspection commands
Before deleting anything, you can inspect the exact size and contents of the hidden trash on any connected volume using Terminal. These commands are strictly read-only and will never modify or erase files:
# 1. Print your current macOS numeric User ID (usually 501)
id -u
# 2. List all files and hidden folders in the root of the external drive
ls -la /Volumes/<DriveName>/
# 3. List the UID directories inside .Trashes (requires sudo on APFS/HFS+ if permissions are preserved)
ls -la /Volumes/<DriveName>/.Trashes 2>/dev/null || sudo ls -la /Volumes/<DriveName>/.Trashes
# 4. Measure the exact disk usage consumed by .Trashes
du -sh /Volumes/<DriveName>/.Trashes/* 2>/dev/null
# 5. Measure disk usage for your specific user ID's trash folder
du -sh /Volumes/<DriveName>/.Trashes/501 2>/dev/nullReplace <DriveName> with your external drive's volume name (as shown in Finder or ls /Volumes). For example, if your drive is named BackupSSD, run du -sh /Volumes/BackupSSD/.Trashes/*.
The Finder dilemma: Empty Trash clears everything
If you right-click the Trash icon in the macOS Dock and select Empty Trash (or press Shift-Command-Delete in Finder), macOS issues an un-link command across every currently mounted volume. It empties:
- Your internal SSD trash (
~/.Trash) - The root system trash (
/private/var/root/.Trash) - All connected external drive trash folders (
/Volumes/*/.Trashes/501)
What if you have files sitting in your Mac's internal Trash that you aren't ready to delete yet, but you desperately need to free up 50 GB on your external drive right now? Finder does not offer an option to empty the trash for a single drive.
Safe Terminal command: empty only the external drive's Trash
You can target and purge only the external drive's trash folder for your user account without touching your internal Mac trash. Open Terminal and run:
rm -rf /Volumes/<DriveName>/.Trashes/501/*Why this command is specifically designed for safety:
501automatically resolves to your active numeric UID (e.g.,501), ensuring you don't accidentally target files belonging to other users if the drive was shared across multiple Macs.- The trailing
/*tellsrmto delete all payload files and subfolders inside the UID directory, leaving the parent.Trashesand UID directory structures intact. This avoids triggering permission warnings from macOS when you next drag a file to the Trash. - It runs exclusively against the mount path in
/Volumes/<DriveName>, leaving your internal~/.Trashcompletely untouched.
Comparison of drive formats and macOS hidden folders
The hidden overhead created by macOS varies depending on the filesystem format used on the external storage device:
| Filesystem Format | Trash Mechanism | Hidden Metadata Folders | Typical Hidden Overhead | Cross-Platform Behavior |
|---|---|---|---|---|
| APFS | .Trashes/<UID> (POSIX UID permissions enforced) | .fseventsd, .Spotlight-V100 | 50 MB – 2 GB (Spotlight index dependent) | macOS only. Invisible to Windows/Linux without commercial drivers. |
| Mac OS Extended (HFS+) | .Trashes/<UID> (POSIX permissions enforced) | .fseventsd, .Spotlight-V100, .TemporaryItems | 50 MB – 1.5 GB | Native on Mac. Read-only on Linux, unreadable on Windows by default. |
| exFAT | .Trashes/<UID> or .Trash-501 (No POSIX permissions) | .Spotlight-V100, .fseventsd, ._* (AppleDouble) | 10 MB – 500 MB (plus trash payloads) | Universal. Windows shows .Trashes and ._* files if "Show Hidden Files" is enabled. |
| FAT32 (MS-DOS) | .Trashes/<UID> (No POSIX permissions) | .Spotlight-V100, .fseventsd, ._* | 10 MB – 200 MB | Universal, but files capped at 4 GB each. Hidden folders visible on Windows and Linux. |
Other hidden folders eating space on external drives
Even after emptying .Trashes, you might find several hundred megabytes consumed on a freshly cleaned external drive. macOS routinely creates several other hidden management directories:
.Spotlight-V100: The local Spotlight search metadata index. If the drive has thousands of code files, images, or documents, Spotlight generates an index database on the drive itself so searches in Finder are fast. You can prevent Spotlight from indexing an external drive by dropping a blank file named.metadata_never_indexinto the root of the volume..fseventsd: The File System Events daemon log directory. macOS uses this to log file changes so Time Machine and backup utilities know what changed since the drive was last scanned.._* (AppleDouble files): On exFAT and FAT32 filesystems, which do not support macOS extended attributes or resource forks, macOS creates companion files prefixed with._for every file you save. If you copy a 5 MB image namedphoto.jpg, macOS also writes a 4 KB._photo.jpgcompanion containing Finder tags, color labels, and icon metadata.
Safe ejection checklist
- Empty Trash while mounted: Before unplugging, verify whether you trashed large files. If you did, empty the Trash in Finder or run the targeted terminal command above.
- Eject cleanly: Never yank a drive cable without ejecting. Right-click the drive in Finder and select Eject "DriveName", click the Eject icon in Finder's sidebar, or run
diskutil eject /Volumes/<DriveName>in Terminal. - Wait for the cache flush: Unmounting forces macOS to flush all dirty write buffers from RAM to the physical NAND flash. Pulling the cable prematurely on exFAT drives frequently damages the File Allocation Table, leaving deleted clusters permanently flagged as allocated.
Where Zofle fits. Zofle, our free Mac app coming soon to the Mac App Store, inspects external volumes and flags hidden trash, orphaned spotlight indices, and purgeable files before ejection. Untick what you want to keep, or empty drive trash with a single click. Join the waitlist and get Zofle Pro free when it launches.
Sources and method
- Tested on macOS 15 Sequoia (15.1) and macOS 14 Sonoma with Samsung T7 1 TB SSD (APFS and exFAT) and SanDisk Ultra 64 GB USB 3.0 (FAT32).
- Apple Developer Documentation: File System Events API and Extended Attributes (AppleDouble storage format specification).
- Apple Support: Delete files and folders on Mac.
- Howard Oakley, The Eclectic Light Company: How macOS manages external storage volumes and hidden directories.
- FreeBSD / macOS manual pages:
rm(1),du(1),id(1),diskutil(8).
Zofle Pro news
People signing up now will get Zofle Pro, with more features, for free when we launch it.