File can't be moved to trash

Discussion in 'MacBook Pro' started by ipos, Sep 15, 2013.

  1. ipos macrumors 6502a

    Joined:
    May 4, 2011
    #1
    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.
     
  2. ipos thread starter macrumors 6502a

    Joined:
    May 4, 2011
  3. Yahooligan macrumors 6502a

    Yahooligan

    Joined:
    Aug 7, 2011
    Location:
    Illinois
    #3
    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.
     

Share This Page