I can't empty the Trash

Discussion in 'macOS Catalina (10.15)' started by Killerbob, Jul 20, 2019.

  1. Killerbob macrumors 6502a

    Killerbob

    Joined:
    Jan 25, 2008
    #1
    OK, I may have done something stupid, but I need help to get out of the situation:)

    I backed up my users folder, so I could do some cleaning up. I quickly realised that this was the wrong way, so I deleted the folder I had created in the copy process.

    Now I have a folder sitting in my Trash, which I cannot get rid of. It contains the folder "Mobile Documents" which is in the users Library folder, and it has about 50 folders in it. No files, just empty folders, some with more empty folders.

    When I try to empty my Trash, I get the message that the files are in use.

    I have tried a bunch of things;

    1) rebooted and tried again,
    2) in terminal I used "cd ~/.Trash", and then "rmdir -r FOLDER", but I get the message that it is an illegal option,
    3) in terminal I used "lsof" and then dropped the folder in there, but I do not get a list of what app has got the files open,
    4) in recovery mode, I ran First Aid.

    And nothing has worked, I still cannot get rid of that folder or its contents.

    What to do?
     
  2. NecRosex macrumors member

    NecRosex

    Joined:
    Jul 16, 2019
    Location:
    babyLon
    #2
    try deleting the file/folder via terminal, put it back to its former location
    sudo rm -rf and drag the folder into terminal
     
  3. Rhinoevans macrumors 6502

    Joined:
    Oct 5, 2012
    Location:
    Las Vegas, NV
    #3
    I can't either. Gives me this message.The operation can’t be completed because an unexpected error occurred (error code -8060). I hear the trash being empty but the trash can stays full. if you open the trash can and select Delete Immediately it works
     
  4. Killerbob thread starter macrumors 6502a

    Killerbob

    Joined:
    Jan 25, 2008
    #4
    I get the message that the Directory not empty - even though they are (I checked for hidden files also...). Also I had tried that before.
     
  5. TimothyR734, Jul 21, 2019
    Last edited: Jul 21, 2019
  6. Killerbob thread starter macrumors 6502a

    Killerbob

    Joined:
    Jan 25, 2008
    #6
    Isn't that essentially the same as turning of SIP, which I have tried?
     
  7. Skoal macrumors 68000

    Joined:
    Nov 4, 2009
    #7
    Could this have something to do with how Catalina now uses two partitions. One looks normal. The other has the same name but also the word data at the end. If you look in disk utility you’ll see. I noticed some strange behavior when looking for an app in the applications folder. It wasn’t in there but it opened when I used spotlight. After digging around I found there are two app folders in similar but different locales. When I went to “get info” one says applications the other says previous content\applications. It’s weird and I’ve not seen this before.

    Not saying this is related to your issue but it may be in some way
     
  8. TimothyR734 macrumors 68000

    TimothyR734

    Joined:
    Apr 10, 2018
    Location:
    Logsden Oregon
    #8
    No this gives you permission just like mount uw killallfinder
     
  9. bogdanw macrumors regular

    bogdanw

    Joined:
    Mar 10, 2009
    #9
    As you are trying to delete user files, disabling SIP and mounting the system as writable should not be necessary.
    Try from Terminal in Recovery
    cd /Volumes/Macintosh\ HD\ -\ Data/Users/YourUser/.Trash
    rm -r folder
    Or make another admin user, log into the new account and try to delete from there.
     
  10. Killerbob thread starter macrumors 6502a

    Killerbob

    Joined:
    Jan 25, 2008
    #10
    Good suggestions, except you cannot see the .Trash folder from another user account - it is not a “permanent” folder.
     
  11. bogdanw macrumors regular

    bogdanw

    Joined:
    Mar 10, 2009
    #11
    Sure you can see it, you can even delete it from Finder. Here is the admin user test looking at another user's files.
    trash.jpg
     
  12. Killerbob thread starter macrumors 6502a

    Killerbob

    Joined:
    Jan 25, 2008
    #12
    OK - so I can see it, but I can't delete it from Finder (I do not have access), and I can't do it from Terminal either...
     
  13. Killerbob thread starter macrumors 6502a

    Killerbob

    Joined:
    Jan 25, 2008
    #13
    I tried disabling everything to do with iCloud, and yet macOS still keeps these folders locked. There are no files in them to be locked, hidden or otherwise, yet still I can’t empty the Trash.
     
  14. Killerbob thread starter macrumors 6502a

    Killerbob

    Joined:
    Jan 25, 2008
    #15
    LOL - I did that, and it ruined my Catalina installation to the point that I could not boot into Catalina. So I restored from Time Machine, and now all is back to normal again...

    Funny thing, the undeletable folder in my Trash is now gone - so I guess it worked... :)
     

Share This Page

14 July 20, 2019