Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is there a possibility of disabling the trash-bin for a drive and deleting files instantly? I'm using DVD-RAM as a backup solution and trashing files is producing a lot of additional, unnecessary writes on the backup discs as the files are moved to a new location and then overwritten on delete from the trash bin.

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

Just found a solution for this on the web while waiting for the timelimit on creating questions:

You just need to open terminal, go to the drive you want the trash-bin to be disabled on and then do this:

sudo rm -rf .Trashes
touch .Trashes

Essentially what this does is deleting the trash-bin recursively and replacing it with an empty file thus blocking OSX from recreating it. When you delete files after that OSX will ask you about instant deletion instead of putting it into the trash-bin. Works perectly.

share|improve this answer
    
What permissions did you add to /Volumes/whatever/.Trashes to keep finder out? –  bmike Dec 4 '12 at 21:50
1  
You don't need to have any special permissions as you're replacing a directory with a file and finder can't use a file as a location for the trash-bin. –  bardiir Dec 4 '12 at 22:24
    
Elegant - thanks –  bmike Dec 4 '12 at 22:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.