Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

zyleon

macrumors newbie
Original poster
Mar 16, 2010
4
0
Sg
I have a folder in my external hard drive that I pulled to trash, but whenever I empty my trash, an error message would show up, stating that the folder cannot be deleted as it is currently in use.

I already deleted all the contents in the folder, I just can't seem to remove that particular folder no matter what.

How do I remove it? Please help!
 
Have you restarted the computer?

If you've already tried that, try opening a Terminal window and running:

sudo rm -rf /Volumes/*/.Trashes/*

Copy and paste this command into Terminal rather than typing it, as a typo could potentially erase your entire hard drive.
 
Try to trick it

Make a new folder. Put the stubborn one inside it. Then delete the new folder.

Other tricks, anyone?
 
Have you restarted the computer?

If you've already tried that, try opening a Terminal window and running:

sudo rm -rf /Volumes/*/.Trashes/*

Copy and paste this command into Terminal rather than typing it, as a typo could potentially erase your entire hard drive.

this message is shown: "rm: /Volumes/PSP/.Trashes/501/deletethis: Directory not empty"

Make a new folder. Put the stubborn one inside it. Then delete the new folder.

Tried both, still doesn't work This error message still shows up. "The operation cannot be completed because the item "deletethis" is in use."
 
You might also want to try relaunching the finder, this worked for me when it wouldn't let me move a folder left behind after uninstalling a game to trash.
 
What angelwatt said is a good idea, this is what I usually do when I come across this error.

On a mac, boot into single user mode and run an fsck on your disk.

While booting up, hold down command-s. This should take you to single user mode. From there there will be some instructions on the screen that actually tells you what to run for an fsck. It'll be something like

Code:
/sbin/fsck -fy

Don't remember what it says exactly but that should sort it out and then you'll be able to delete it :)

Oh, and once that is done, you can type "reboot" to reboot your machine.
 
What angelwatt said is a good idea, this is what I usually do when I come across this error.

On a mac, boot into single user mode and run an fsck on your disk.

While booting up, hold down command-s. This should take you to single user mode. From there there will be some instructions on the screen that actually tells you what to run for an fsck. It'll be something like

Code:
/sbin/fsck -fy

Don't remember what it says exactly but that should sort it out and then you'll be able to delete it :)

Oh, and once that is done, you can type "reboot" to reboot your machine.


It still says that file is in use. I get this nagging feeling that it's because of my psp. I have a friend who is having the same problem, but it's in an office mac.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.