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

FunkyPurple

macrumors newbie
Original poster
Sep 20, 2004
26
0
Somewhere in Uptown
It says the operation cannot be completed because the item is locked. I've searched hi and low to find a way to unlock the file but I haven't been able to. What should I do? :confused:
 
FunkyPurple said:
It says the operation cannot be completed because the item is locked. I've searched hi and low to find a way to unlock the file but I haven't been able to. What should I do? :confused:

Worse comes to come, just open up the Terminal and type "rm -rf ~/.Trash/*" which will delete all items in your trash. Or "rm -rf ~/.Trash/file" to delete only the file or directory "file" from the Trash.
 
coconn06 said:
Or "rm -rf ~/.Trash/file" to delete only the file or directory "file" from the Trash.

For the record, the -r flag isn't needed if it's a single file. The -r flag is for recursively removing given directory hierarchy.
 
yellow said:
For the record, the -r flag isn't needed if it's a single file. The -r flag is for recursively removing given directory hierarchy.

That's why I said file OR directory. I included -r to cover both cases. Next time read what I wrote (you even quoted it!) before commenting.
 
coconn06 said:
That's why I said file OR directory. I included -r to cover both cases. Next time read what I wrote (you even quoted it!) before commenting.

Yep, see that now. Decaf. Seriously. Try it.
 
Most of the time you can just restart and then it will let you delete it.
 
I tried the 'hold down option' suggestion first and it worked like a charm. Thanks Yellow for that one and thanks to everyone else for your suggestions. I love this site! :D
 
there is also a program called delete it on versiontracker that has worked flawlessly for me a few times. But option delete is easier.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.