empty trash only on external disk?

I need to free up space on an external drive. Several GB of files are in the trash of this disk. However, I don't want to empty my system disk trash, since I use that folder as a "maybe" file for things I might need to reuse in the future (but probably won't). I generally go into the trash a few times a year and grab a file I need again for some purpose.

Is there a way to empty the trash ONLY on one disk? It seems like this should be simple to do, but I've poked around the OS and the web and can't find a way. Thanks!

iMAC 24" aluminim, Mac OS X (10.5.2)

Posted on May 20, 2008 5:56 AM

Reply
13 replies

May 20, 2008 7:24 AM in response to a brody

While I appreciate you taking the time to reply, there is no functional reason why I shouldn't use the Trash as a folder. The Trash is a folder, and I prefer not to have an additional folder on my desktop. And in Windows (from which I recently converted) you can use the Disk Cleanup utility to empty trash on a per-disk basis.

Does anyone know if there is an answer to my original question? Is there a way to empty the "Trashes" file on a single disk without doing a system wide Empty Trash?

May 20, 2008 7:28 AM in response to virusdoc

There is one functional reason. The more contents a single folder has, the more likely you'll get data corruption. A more smart system keeps your data backed up on a regular basis, instead of using your external hard drive for additional storage*:

http://www.macmaps.com/backup.html

And then once you are certain you don't want the data on your drive to be taking up space, you burn it to CD or DVD at least twice, or keep it on a second partition of the hard drive as well as a CD, until you are ready to get rid of it. Keeping it in just one place is risky. This is especially true since you can always accidently empty the trash on the only copy of important data you want to keep. Once you have agreed to maintain a good backup system, I can give you instructions on how to empty your trash. Because there is always risk if you don't do it.

- * Links to my pages may give me compensation

May 20, 2008 8:02 AM in response to virusdoc

it's possible but the system is certainly not designed for this which is why you are having problems. There is no GUI way to do this so it has to be done from terminal.

run the following command in terminal:

*rm -rf /Volumes/"drive-name"/.Trashes/`id -u`*

Put the name of the drive in question in the above and keep the quotation marks.
However, I would recommend you adopt a different system for long term storage of your "maybe" files.

May 20, 2008 6:08 PM in response to virusdoc

yest, the command deletes the .Trash folder entirely.
what you say about having to remount the drive is strange. that .Trash folder should be recreated as soon as you try to trash something on that drive. that's how it has always worked for me.
I suppose you could amend the command to
\\
rm -rf /Volumes/"drive-name"/.Trashes/`id -u`/*

This will delete everything in the trash folder but not the folder itself. I didn't do it this way in my first post because this should not be necessary.

May 24, 2008 1:07 AM in response to virusdoc

For your maybe files, just create a folder somewhere outside of the trash can folder. Call this folder "pending trash" or something along those lines, then move the contents of your trash to that folder. Put the contents of the second disk in the trash, then empty it.

Apple designed the trash folder for the purpose of deleting files. If you are uncertain about deleting a file, it has no business being in the trash; it should go in a pending folder.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

empty trash only on external disk?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.