CleanMate

All guides · macOS and Ubuntu · Updated

USB or external drive still full after deleting files: the hidden .Trashes (Mac) and .Trash-1000 (Ubuntu) folders

Files you delete on a USB stick or external drive go to a hidden Trash folder on that drive: .Trashes/<uid> on a Mac, .Trash-1000 on Ubuntu. How to see how big it is, empty it safely in Finder, Files or with gio trash --empty, FAT and exFAT drives, and Trash left by another computer.

Download for macOS · Install on Ubuntu — free and open source

CleanMate Large & Old Files on a Mac, listing big files on a drive, including those waiting in an external drive TrashCleanMate Large & Old Files on a Mac, listing big files on a drive, including those waiting in an external drive Trash

You delete 20 GB from a USB stick, and it is still full. Or a friend’s drive shows a folder called .Trash-1000 you never made. Both come from the same rule: on a Mac and on Ubuntu, a file deleted on an external drive is not removed. It moves to a hidden Trash folder on that drive, so it can be restored, and it keeps using the drive’s space until that Trash is emptied.

Where the drive’s Trash is

Folder at the top of the drive Shown in your Trash
Mac .Trashes/<your user id>, for example .Trashes/501 while the drive is connected
Ubuntu .Trash-<your user id>, for example .Trash-1000 (or .Trash/1000 if the drive has a shared .Trash folder) while the drive is mounted

Your user id is the number id -u prints: usually 501 for the first account on a Mac, 1000 for the first account on Ubuntu. The folders start with a dot, so they are hidden: press ⌘⇧. in Finder, or Ctrl+H in Files on Ubuntu, to show them.

See how big it is

On a Mac (replace MyDrive with the drive’s name):

du -sh "/Volumes/MyDrive/.Trashes/$(id -u)"

If Terminal is refused, allow it in System Settings › Privacy & Security › Files and Folders › Removable Volumes.

On Ubuntu, drives are usually mounted under /media/<your user name>/:

du -sh "/media/$USER/MyDrive/.Trash-$(id -u)"
gio trash --list

gio trash --list lists everything in your Trash, the drives’ Trash included.

Empty it safely

Check first: what is there can still be restored, and emptying deletes it for good.

To empty only one drive’s Trash from the terminal, delete just that folder, and type the path carefully:

rm -r "/Volumes/MyDrive/.Trashes/$(id -u)"     # Mac
rm -r "/media/$USER/MyDrive/.Trash-$(id -u)"    # Ubuntu

The system makes the folder again the next time you delete something on the drive. Never run rm on the drive’s top folder or on a path with a typo in it.

FAT and exFAT drives, and other computers

Most USB sticks and SD cards use FAT32 or exFAT, which have no file owners. Both systems still make their Trash folder on them, and Windows shows .Trashes or .Trash-1000 as an ordinary folder that takes space.

A drive used on several computers can hold Trash folders of other users: .Trashes/502 from another Mac, .Trash-1001 from another Ubuntu account. Your Trash never shows them, so emptying it doesn’t free that space. Look inside first; if nothing is needed, delete that folder by name. On FAT and exFAT any user can delete it; on a Mac-formatted (APFS, Mac OS Extended) or ext4 drive it belongs to the other user, so it needs sudo rm -r with the full path.

How CleanMate does it

On a Mac, CleanMate 1.12 (all macOS features):

On Ubuntu, CleanMate 2.7.0 (all Ubuntu features):

The rest of the checklist: Free up disk space on a Mac and on Ubuntu. If the Mac’s own disk shows less free space than you expect, see Purgeable space and Time Machine local snapshots. CleanMate is free and open source: download it.

The Trash that refuses to empty has more causes than the drive: Trash won’t empty or says the file is in use walks through all of them.

Items CleanMate moved from a drive’s Trash sit on the same restore lists as everything else: restoring what was cleaned.

FAQ

Can I delete the .Trashes or .Trash-1000 folder? Yes, once you have checked nothing in it is needed. It holds only deleted files, and it is made again when you next delete something on the drive.

Why does my drive look full on another computer? The other computer doesn’t empty your Trash folder, and Windows doesn’t know it is a Trash. Empty it on the computer that made it, or delete the folder.

Does formatting the drive remove it? Yes, formatting erases everything on the drive, the Trash folders included.

Skip the commands

CleanMate runs on both systems: pick yours.

Open source — star it on GitHub: CleanMate for macOS · CleanMate for Ubuntu

How CleanMate decides what is safe to remove →