Cannot empty waste basket

Discussion in 'macOS' started by kolax, Jun 12, 2007.

  1. kolax macrumors G3

    Joined:
    Mar 20, 2007
    #1
    Seem to have a problem. Whenever I plug in my external hard drive, a folder appears in my waste basket (something I deleted from my external hard drive). If there is data in the waste basket, I can delete everything from it but the file that is associated with my hard drive.

    I get a message saying:

    "The operation cannot be completed because the item 'Archive' is in use"

    When I unplug my external hard drive, the waste basket is empty.

    It's just a nuisance for when I delete things, I get an error message (only when my ex.HDD is plugged in).

    Any help on fixing this would be appreciated.
     
  2. EricNau Moderator emeritus

    EricNau

    Joined:
    Apr 27, 2005
    Location:
    San Francisco, CA
    #2
    First of all, that behavior is normal. Anytime you trash an item on an external HDD, it isn't truly deleted until you empty the trash while that HDD is still plugged in. (Until you empty the trash, that file is still on the hard drive in hidden form.)

    Can you think of what app might be using that file on your external HDD?
     
  3. xUKHCx Administrator emeritus

    xUKHCx

    Joined:
    Jan 15, 2006
    Location:
    The Kop
    #3
    Use "secure empty trash" if you are sure that the file is not currently in use, (perhaps it was in use when you disconnected the drive last-time).

    This should over ride the error and delete the file.

    Finder - Secure Empty Trash.
     
  4. DinnyHoon macrumors member

    Joined:
    Jun 11, 2007
    Location:
    Liverpool, UK
    #4
    If you haven't already, try rebooting your Mac with the external HDD plugged in. It should clear any processes hogging your unwanted file.
     
  5. kolax thread starter macrumors G3

    Joined:
    Mar 20, 2007
    #5
    Thanks for the replies.

    I tried all the above and no luck. The folder is an empty folder too, so its not like it contains a file or something that might be in use. If I even try to drag it outside the waste bag it creates a copy, and it still remains in the bin.
     
  6. Blubbert macrumors 6502

    Joined:
    Nov 1, 2006
    #6
    You could always use the terminal. Just open it up and type "rm -rf " without quotations (there is a space after the f, its needed) and just drag the offending file from the trash and drop it into the terminal. Then just press enter, and the file should dissapear.
     
  7. EricNau Moderator emeritus

    EricNau

    Joined:
    Apr 27, 2005
    Location:
    San Francisco, CA
    #7
    ...or, if that doesn't work, do you have a Windows machine handy?
     
  8. kolax thread starter macrumors G3

    Joined:
    Mar 20, 2007
    #8
    That seem to do the trick cheers.

    I had to show hidden files and folders and find the file within the hard drive (was in .trashes/501/) and dragged that into the terminal with the "rm -rf " command.

    Cheers!
     
  9. bankholdup macrumors newbie

    Joined:
    Feb 6, 2008
    #9
    I am having the same issue.

    Unfortunately I have not been able to resolve it with the solutions provided here so wondered if anyone had any further advice.

    After 'showing hidden files and folders' the item I want to delete also appears in the .trashes/501/ folder - the issue I have is that the item I want to delete is a folder that contains several other (empty) folders.

    when I try the rm method through terminal I get -

    rm: /Volumes/WORK/.Trashes/501/from PC/My Pictures/My Pictures/Sample Pictures: Operation not permitted

    parent folder -

    rm: /Volumes/WORK/.Trashes/501/from PC/My Pictures/My Pictures/Sample Pictures: Operation not permitted
    rm: /Volumes/WORK/.Trashes/501/from PC/My Pictures/My Pictures: Directory not empty
    rm: /Volumes/WORK/.Trashes/501/from PC/My Pictures/My Videos: Operation not permitted
    rm: /Volumes/WORK/.Trashes/501/from PC/My Pictures: Directory not empty
    rm: /Volumes/WORK/.Trashes/501/from PC: Directory not empty

    I have tried deleting the parent folder and also working backwards from the deepest folder but nothing works! The folders are all showing up as empty.. .. Help!
     
  10. richard.mac macrumors 603

    richard.mac

    Joined:
    Feb 2, 2007
    Location:
    51.50024, -0.12662
    #10
    try this unix command in Terminal

    Disclaimer: do not blame me if this command deletes all of your work :p

    Code:
    cd /Volumes/WORK/; sudo rm -rf .Trashes; killall Finder
     
  11. bankholdup macrumors newbie

    Joined:
    Feb 6, 2008
    #11
    No Luck.... same sort of error...

    rm: .Trashes/501/from PC/My Pictures/My Pictures/Sample Pictures: Operation not permitted
    rm: .Trashes/501/from PC/My Pictures/My Pictures: Directory not empty
    rm: .Trashes/501/from PC/My Pictures/My Videos: Operation not permitted
    rm: .Trashes/501/from PC/My Pictures: Directory not empty
    rm: .Trashes/501/from PC: Directory not empty
    rm: .Trashes/501: Directory not empty
    rm: .Trashes: Directory not empty
     
  12. richard.mac macrumors 603

    richard.mac

    Joined:
    Feb 2, 2007
    Location:
    51.50024, -0.12662
    #12
    can you show invisible files then drag those folders to your home folder (or move them to ~/ in Terminal) and then "sudo rm -rf" them individually while in your home directory?
     
  13. bankholdup macrumors newbie

    Joined:
    Feb 6, 2008
    #13
    I added the folder back to the drive from my Mac's trash - tried to delete it but get the same issue... I played around with it some more and it wont let me rename the folders either... it was a bunch of stuff I copied from my old PC so i wonder if it has something to do with the fact these folders are Windows defaults i.e. "My Pictures, My Videos..."

    The issue seems to be more about permissions.
     

Share This Page