inProgress file stuck in Trash

Discussion in 'OS X El Capitan (10.11)' started by jgelin, May 17, 2016.

  1. jgelin macrumors 6502a

    jgelin

    Joined:
    Jul 30, 2015
    Location:
    St Petersburg, FL
    #1
    Hello all
    I am having quite some trouble emptying the Trash from my iMac. I deleted an inProgress file from a hungup time machine backup and now it is stuck in the trashcan.
    I have followed these steps here: http://pondini.org/TM/E6.html but to no avail, and the file still persists.
    When I run the command in the above site, I get some directories listed after it is run saying that each listed directory is not empty?
    What should I do?
    Would Verifying/Repairing the disk help?
    Thank you!
     
  2. richard2, May 17, 2016
    Last edited: May 17, 2016

    richard2 macrumors regular

    richard2

    Joined:
    Oct 21, 2010
    Location:
    England, United Kingdom
    #2
    Try the following:

    1. Open Terminal,
    2. Enter the following:

      shopt -s dotglob; sudo chflags -R noschg,nouchg ~/.Trash/* && sudo rm -Rf ~/.Trash/*

    The correct way of deleting Time Machine backups is to execute "sudo tmutil delete <Path>".
     
  3. jgelin thread starter macrumors 6502a

    jgelin

    Joined:
    Jul 30, 2015
    Location:
    St Petersburg, FL
    #3
    And using this command will leave my other files intact? just making sure as this contains lots of commands that I am unfamiliar with.
    --- Post Merged, May 17, 2016 ---
    And here is the output when running this command:
     

    Attached Files:

  4. richard2, May 17, 2016
    Last edited: May 17, 2016

    richard2 macrumors regular

    richard2

    Joined:
    Oct 21, 2010
    Location:
    England, United Kingdom
    #4
    Code:
    shopt -s dotglob;
    Make the wildcard character "*" match files with names that begin with a dot. (This probably isn't necessary, but it won't cause any harm.) The semicolon means "then execute the following command".

    Code:
    sudo chflags -R noschg,nouchg ~/.Trash/* &&
    Remove the system immutable and user immutable flags from all of the files in the folder ~/.Trash. The double-ampersand means "if the previous command was executed successfully, then execute the following command".

    Code:
    sudo rm -Rf ~/.Trash/*
    Forcefully and recursively delete all of the files in the folder ~/.Trash.

    Oops! I've corrected the command in my original post. :)
     
  5. jgelin thread starter macrumors 6502a

    jgelin

    Joined:
    Jul 30, 2015
    Location:
    St Petersburg, FL
    #5
    It is here where it seems to be having issue, the -R and -h cannot be combined into an -rh, do advise, see screenshot.

    And you are AMAZING for breaking it down like that to explain what will happen step by step!!
     

    Attached Files:

  6. richard2 macrumors regular

    richard2

    Joined:
    Oct 21, 2010
    Location:
    England, United Kingdom
    #6
    Er, actually, the following is the correct procedure:

    1. Open Terminal.
    2. Type the following:

      sudo chflags -R noschg,nouchg
    3. Type a space.
    4. Drop the folder you wish to delete onto the Terminal window.
    5. In Terminal, press return.
     

Share This Page