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

ipos

macrumors 65816
Original poster
May 4, 2011
1,185
157
it says The operation can’t be completed because the item “file name” is locked.

i have tried to unchecked the locked option but it is the checked box is dimmed. any advice, pls.

thanks.
 
The file name should be a clue. There is a process that still has the file open and locked, the file won't be unlocked until the process holding the lock removes the lock or quits.

So, find out what process has locked the file and quit it, then empty the trash again.

If you're not sure what process is holding the file(s) open, you can find this out by using "lsof" via Terminal. Something such as...

$ sudo lsof +D .Trash +D /.Trashes

"Finder" having the .Trash directory open is expected, you want to find out what has files within the trash locations open.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.