Can't Empty Trash

Discussion in 'Mac Basics and Help' started by ProTruckDriver, Jun 16, 2018.

  1. ProTruckDriver macrumors regular

    ProTruckDriver

    Joined:
    Jul 28, 2016
    Location:
    Chesapeake, Virginia
    #1
    I have noticed that I have a GIF image that I put into the trash a few weeks ago that will not empty when I empty that trash. All other documents and images empty but this one GIF keeps coming back and appearing in the trash. I tried to empty in Safe Mode. It disappeared when I restarted the computer. Then I put a different document in the trash for testing and the GIF appeared again. Any suggestions?
     
  2. mic j macrumors 68030

    Joined:
    Mar 15, 2012
    #2
    I use an app called Trash It when I occasionally have had this problem. So far, it has removed every item that has ever gotten stuck in my Trash.
     
  3. NoBoMac, Jun 17, 2018
    Last edited: Jun 17, 2018

    NoBoMac macrumors 68020

    NoBoMac

    Joined:
    Jul 1, 2014
    #3
    Sounds like you have some program that is launching at startup that might be creating it, so, check your startup items and launch agents and daemons.

    Can also try to do command line delete: might shake loose whatever is going on. From Terminal:

    Code:
    cd .Trash
    rm -rf *
    (Note: the second command can cause extreme havoc if not done in the Trash folder, so, extreme caution is required)
     
  4. ProTruckDriver thread starter macrumors regular

    ProTruckDriver

    Joined:
    Jul 28, 2016
    Location:
    Chesapeake, Virginia
    #4
    Thank you @mic j and @NoBoMac . I'll give them both a try later today or tomorrow and see if the trash empty's. :)
     
  5. ProTruckDriver thread starter macrumors regular

    ProTruckDriver

    Joined:
    Jul 28, 2016
    Location:
    Chesapeake, Virginia
    #5
    To give an update on my problem I never got around to downloading "Trash It" or using the Command Line. A few days ago I uploaded some pics to the iCloud. Some how that must have done something to the pic I had stuck in the trash. The stuck pic in the trash was not one of the pics I uploaded to the cloud. But after the upload the pic was gone from the trash and was not in iCloud either. Sort of weird if you ask me, but my trash is now empty. :)
     
  6. Gravydog316, Aug 27, 2018
    Last edited: Aug 27, 2018

    Gravydog316 macrumors 6502

    Gravydog316

    Joined:
    May 17, 2016
    Location:
    Canada
    #6
    Thats usuallly because of a messed-up piece of the file;

    (it could've been, the file was erased, but just still was appearing in the trash)
    at school, we used an app called Permanent Eraser, from Edenwraith which worked great:
    http://www.edenwaith.com
    :)

    ...the Trash is just a folder... an app could've been using the file or data; or iCloud or Spotlight could've been using the file;

    there could've been different permissions on the file by the app or whomever created it too...
     
  7. maccompaq macrumors 65816

    maccompaq

    Joined:
    Mar 6, 2007
    #7
    --- Post Merged, Aug 27, 2018 ---
    I downloaded this app, but it did not empty the trash. Have tried several things without success.
     
  8. Gravydog316 macrumors 6502

    Gravydog316

    Joined:
    May 17, 2016
    Location:
    Canada
    #8
    hmmm. something with the file is messed up (i'm guessing?)
    try search on google for different solutions...

    there might be a Terminal command that will work.

    Does the trash have the full or empty icon on the Dock?
    --- Post Merged, Aug 30, 2018 ---
    Turn off your wifi, iCloud, bluetooth, location services, automatic updates, etc. & then try...

    Some people had this happen with the last macOS version, so I would say it's just a macOS bug.
    Try filing a bug report with Apple, & see if they reply to you.
     
  9. Sackofnickels Suspended

    Sackofnickels

    Joined:
    Jul 13, 2018
    #9
    These instructions work like a charm.

    https://www.imore.com/how-force-empty-trash-your-mac-using-terminal
     
  10. maccompaq macrumors 65816

    maccompaq

    Joined:
    Mar 6, 2007
    #10
  11. Sackofnickels Suspended

    Sackofnickels

    Joined:
    Jul 13, 2018
    #11
    I believe the link I posted addresses the issue. I'm no expert but I found the following:

    "It used to be that you could force the trash to empty on your Mac using sudo rm -rf ~/.Trash/*, but it doesn't work in El Capitan or Sierra. If you are running OS X 10.10 or higher, follow these steps instead".

    1. Enter the following command into terminal without hitting Enter afterward.

      sudo rm -R

      Please note that there is a space after R. Make sure you add a space after R or this command will not work.

    2. Control-click on your Trash icon to open it.

    3. Select all of the files in your trash folder.
    4. Drag the files into the Terminal window.

      [​IMG]

    5. Hit Enter.
    6. Enter your administrator password. You will not see the password being typed into Terminal. It will look like nothing has changed.
    7. Hit Enter again.

    Spells it out step by step.
     
  12. maccompaq macrumors 65816

    maccompaq

    Joined:
    Mar 6, 2007
    #12
    I tried your suggestion many times. Terminal gave me this dialog after listing all items in the Trash: Invalid argument. Directory not empty
     
  13. Silvrbill macrumors member

    Joined:
    Dec 20, 2013
    #13
    Try re-starting your computer, then emptying the trash.
     

Share This Page

12 June 16, 2018