Remove the functional .Trashes trash can from memory sticks

Jan 29, '04 10:30:00AM

Contributed by: Anonymous

I finally received my USB Flash Memory stick today. What I found annoying is that deleted files stay on the memory stick in its "Trashes" folder if you move them to the trash. As I never have anything solely on the memory stick, I don't need the "Trash" feature of the Finder, but want files to be immediatelly deleted. So I opened the Terminal, and cded to the memory stick, and replaced the ".Trashes" folder with a ".Trashes" file:


% cd /Volumes/USBMEM/
% rm -r .Trashes
% touch .Trashes
and: VoilĂ  ... if I command-delete files on the memory stick, the Finder tells me that the files will be deleted and asks me if I want to continue. Now I don't have to empty my trash to empty my memory stick.

Comments (10)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20040121161137177