Skip navigation

Trash won't empty - Tried everything

2277 Views 8 Replies Latest reply: Jul 28, 2013 6:01 AM by nbar RSS
stylefire Calculating status...
Currently Being Moderated
May 1, 2013 10:09 AM

Please help,

 

I've tried:

 

rm

sudo rm

rm -f

rm -rf

trashit

disk repair in Utilities

safe mode

secure empty trash

 

the folder was on the external drive.

there is no fancy software for this drive.

 

-mac-mini-2:~ minime$ rm trash/Star Wars - All six episodes

rm: trash/Star: No such file or directory

rm: Wars: No such file or directory

rm: -: No such file or directory

rm: All: No such file or directory

rm: six: No such file or directory

rm: episodes: No such file or directory

-mac-mini-2:~ minime$ rm /Users/minime/Desktop/Star Wars - All six episodes

rm: /Users/minime/Desktop/Star: No such file or directory

rm: Wars: No such file or directory

rm: -: No such file or directory

rm: All: No such file or directory

rm: six: No such file or directory

rm: episodes: No such file or directory

-mac-mini-2:~ minime$ rm /Users/minime/Desktop/Star Wars - All six episodes

rm: /Users/minime/Desktop/Star: No such file or directory

rm: Wars: No such file or directory

rm: -: No such file or directory

rm: All: No such file or directory

rm: six: No such file or directory

rm: episodes: No such file or directory

-mac-mini-2:~ minime$ rm /Users/minime/Desktop/Starwars-allsixepisodes

rm: /Users/minime/Desktop/Starwars-allsixepisodes: No such file or directory

-mac-mini-2:~ minime$ /Users/minime/Desktop/Star\ Wars\ -\ All\ six\ episodes

-bash: /Users/minime/Desktop/Star Wars - All six episodes: is a directory

-mac-mini-2:~ minime$ rm /Users/minime/Desktop/Star\ Wars\ -\ All\ six\ episodes

rm: /Users/minime/Desktop/Star Wars - All six episodes: is a directory

-mac-mini-2:~ minime$ sudo rm /Users/minime/Desktop/Star\ Wars\ -\ All\ six\ episodes

 

 

WARNING: Improper use of the sudo command could lead to data loss

or the deletion of important system files. Please double-check your

typing when using sudo. Type "man sudo" for more information.

 

 

To proceed, enter your password, or type Ctrl-C to abort.

 

 

Password:

Sorry, try again.

Password:

rm: /Users/minime/Desktop/Star Wars - All six episodes: is a directory

-mac-mini-2:~ minime$ sudo rm /Users/minime/Desktop/Star\ Wars\ -\ All\ six\ episodes

rm: /Users/minime/Desktop/Star Wars - All six episodes: is a directory

-mac-mini-2:~ minime$ rm -rf/Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

rm: illegal option -- /

usage: rm [-f | -i] [-dPRrvW] file ...

       unlink file

-mac-mini-2:~ minime$ rm -f /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

rm: /Volumes/BARRA TERRA/.Trashes/501/Star Wars - All six episodes: is a directory

-mac-mini-2:~ minime$ rm -rf /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

rm: /Volumes/BARRA TERRA/.Trashes/501/Star Wars - All six episodes: Directory not empty

-mac-mini-2:~ minime$ sudo rm -rf /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

Password:

 

rm: /Volumes/BARRA TERRA/.Trashes/501/Star Wars - All six episodes: Directory not empty

-mac-mini-2:~ minime$ sudo rm -rf /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

rm: /Volumes/BARRA TERRA/.Trashes/501/Star Wars - All six episodes: Directory not empty

-mac-mini-2:~ minime$ rm -R ~/.Trash

-mac-mini-2:~ minime$ killall Finder

-mac-mini-2:~ minime$ sudo rm -R ~/.Trash

Password:

-mac-mini-2:~ minime$ killall Finder

-mac-mini-2:~ minime$ mkdir ~/.Trash/

mkdir: /Users/minime/.Trash/: File exists

-mac-mini-2:~ minime$

Last login: Thu May  2 01:07:39 on console

-mac-mini-2:~ minime$ ls -la /Volumes/Barra-Terra/.Trashes/$UID

ls: /Volumes/Barra-Terra/.Trashes/501: No such file or directory

-mac-mini-2:~ minime$ ls -la /Volumes/BARRA\ TERRA/.Trashes/$UID

total 192

drwxrwxrwx@ 1 minime  staff  32768  1 May 22:49 .

drwxrwxrwx@ 1 minime  staff  32768 10 May  2011 ..

drwxrwxrwx  1 minime  staff  32768 15 Jan  2023 Star Wars - All six episodes

-mac-mini-2:~ minime$ rm -rf /Volumes/BARRA\ TERRA/.Trashes/501/Star Wars - All six episodes

-mac-mini-2:~ minime$ ls -la /Volumes/BARRA\ TERRA/.Trashes/$UID

total 192

drwxrwxrwx@ 1 minime  staff  32768  1 May 22:49 .

drwxrwxrwx@ 1 minime  staff  32768 10 May  2011 ..

drwxrwxrwx  1 minime  staff  32768 15 Jan  2023 Star Wars - All six episodes

-mac-mini-2:~ minime$ rm -rf /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

rm: /Volumes/BARRA TERRA/.Trashes/501/Star Wars - All six episodes: Directory not empty

-mac-mini-2:~ minime$ rm -rf /Volumes/BARRA\ TERRA/.Trashes/$UID/Star Wars - All six episodes

-mac-mini-2:~ minime$ sudo rm -rf /Volumes/BARRA\ TERRA/.Trashes/$UID/Star Wars - All six episodes

Password:

-mac-mini-2:~ minime$ ls -lare /Volumes/BARRA\ TERRA/.Trashes/501

total 192

drwxrwxrwx  1 minime  staff  32768 15 Jan  2023 Star Wars - All six episodes

drwxrwxrwx@ 1 minime  staff  32768 10 May  2011 ..

drwxrwxrwx@ 1 minime  staff  32768  1 May 22:49 .

-mac-mini-2:~ minime$ ls -la /Volumes/BARRA\ TERRA/.Trashes/501

total 192

drwxrwxrwx@ 1 minime  staff  32768  1 May 22:49 .

drwxrwxrwx@ 1 minime  staff  32768 10 May  2011 ..

drwxrwxrwx  1 minime  staff  32768 15 Jan  2023 Star Wars - All six episodes

-mac-mini-2:~ minime$ ls -la /Volumes/BARRA\ TERRA/.Trashes/501/Star Wars - All six episodes

ls: -: No such file or directory

ls: /Volumes/BARRA TERRA/.Trashes/501/Star: No such file or directory

ls: All: No such file or directory

ls: Wars: No such file or directory

ls: episodes: No such file or directory

ls: six: No such file or directory

-mac-mini-2:~ minime$ ls -la /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

ls: HSRCj␀␀␀.’^\031: No such file or directory

ls: _barra t.ERR: No such file or directory

-mac-mini-2:~ minime$ ls -lare /Volumes/BARRA\ TERRA/.Trashes/501

total 192

drwxrwxrwx  1 minime  staff  32768 15 Jan  2023 Star Wars - All six episodes

drwxrwxrwx@ 1 minime  staff  32768 10 May  2011 ..

drwxrwxrwx@ 1 minime  staff  32768  1 May 22:49 .

-mac-mini-2:~ minime$ ls -lare /Volumes/BARRA\ TERRA/.Trashes/501/Star Wars - All six episodes

ls: -: No such file or directory

ls: /Volumes/BARRA TERRA/.Trashes/501/Star: No such file or directory

ls: All: No such file or directory

ls: Wars: No such file or directory

ls: episodes: No such file or directory

ls: six: No such file or directory

-mac-mini-2:~ minime$

Last login: Thu May  2 02:26:03 on console

-mac-mini-2:~ minime$ ls -lare /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

ls: HSRCj␀␀␀.’^\031: No such file or directory

ls: _barra t.ERR: No such file or directory

-mac-mini-2:~ minime$ ls -lare /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ - All\ six\ episodes

ls: /Volumes/BARRA TERRA/.Trashes/501/Star Wars -: No such file or directory

ls: All six episodes: No such file or directory

-mac-mini-2:~ minime$ ls -lare /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ All\ six\ episodes

ls: /Volumes/BARRA TERRA/.Trashes/501/Star Wars All six episodes: No such file or directory

-mac-mini-2:~ minime$ ls -lare /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

-mac-mini-2:~ minime$ sudo rm -rf /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

Password:

rm: /Volumes/BARRA TERRA/.Trashes/501/Star Wars - All six episodes: Directory not empty

-mac-mini-2:~ minime$ ls -lare /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

ls: HSRCj␀␀␀.’^\031: No such file or directory

ls: _barra t.ERR: No such file or directory

-mac-mini-2:~ minime$ ls -lare /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

ls: HSRCj␀␀␀.’^\031: No such file or directory

ls: _barra t.ERR: No such file or directory

-mac-mini-2:~ minime$ ls -la /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

ls: HSRCj␀␀␀.’^\031: No such file or directory

ls: _barra t.ERR: No such file or directory

-mac-mini-2:~ minime$ ls -lae /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

ls: HSRCj␀␀␀.’^\031: No such file or directory

ls: _barra t.ERR: No such file or directory

-mac-mini-2:~ minime$ ls -ld /Volumes/BARRA\ TERRA/

drwxrwxrwx  1 minime  staff  32768  2 May 02:17 /Volumes/BARRA TERRA/

-mac-mini-2:~ minime$ ls -lare /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

ls: HSRCj␀␀␀.’^\031: No such file or directory

ls: _barra t.ERR: No such file or directory

-mac-mini-2:~ minime$ ls -la /Volumes/BARRA\ TERRA/.Trashes/501/Star\ Wars\ -\ All\ six\ episodes

ls: HSRCj␀␀␀.’^\031: No such file or directory

ls: _barra t.ERR: No such file or directory

-mac-mini-2:~ minime$

Last login: Thu May  2 02:28:20 on ttys000

-mac-mini-2:~ minime$

 

 

ANy help would be much appreciated.

Cheers

Mac mini, Mac OS X (10.7.5)
  • Creeper74 Calculating status...
    Currently Being Moderated
    May 1, 2013 1:10 PM (in response to stylefire)

    is the external drive that you deleted the files from still connected to your system?  if not, reconnect it and empty your trash again.

     

    i had this exact problem with videos on a flip video camera.  i connected the camera to offload the videos, and deleted them off the camera from within the finder.  disconnected the camera and couldn't completely empty the trash until i reconnected it.  hope that helps

  • KarenSelena Level 4 Level 4 (1,905 points)
    Currently Being Moderated
    May 1, 2013 1:12 PM (in response to Creeper74)

    If it does not solve your issue, refer to this web site for more troubleshooting options - http://www.thexlab.com/faqs/trash.html.

  • Recreationsdesign Calculating status...
    Currently Being Moderated
    May 22, 2013 3:31 PM (in response to stylefire)

    Dude this may help

    You can't empty the Trash or move a file to the Trash

     

    http://support.apple.com/kb/HT1526

     

    Advanced tip about deleting locked files

     

    If there are several locked files in the Trash, you can unlock them all at the same time at the command line. Follow these steps:

    1. Open Terminal. It's located in /Applications/Utilities.

      Type: chflags -R nouchg 

      Note: Type one space (not pictured) after nouchg in the line above, so that it ends in "nouchg ". Do not press Return yet.
    2. Double-click the Trash icon in the Dock to reveal the contents of the Trash. If necessary, arrange the Finder window so that a portion of the Terminal window is still visible.
    3. Press the Command-A key combination to select all files in the Trash.
    4. Drag the files from the Trash to the Terminal window. 
      Note: This automatically enters the pathname for each file. This eliminates the need to individually empty multiple Trash directories, particularly when multiple disks or volumes are present.
    5. Press Return.  No special text message will be shown indicating that the command was successful.
    6. Empty the Trash.

    If the Trash does not empty or if you see a message in Terminal that says "usage: chflags [-R [-H | -L | -P]] flags file..." you most likely did not type the text in step 2 as indicated or did not leave a space. Repeat the steps if this happens.

     

     

    I have a similar issue to you having moved infected files from a Time Machine Schedular backups folder to the trash. It won't empty. The items are locked with system read and write. Am in the process of using sudo rm -rf /Volumes/..... but getting a lot of Directory not empty and Invalid argument reports via Terminal. Maybe the trick is to unlock all the files and apply admin permissions to every file in each directory.  We'll see...Let us know if you find a solution!

  • Recreationsdesign Level 1 Level 1 (0 points)
    Currently Being Moderated
    May 22, 2013 4:02 PM (in response to Recreationsdesign)

    By the way unlocking the files with the  command chflags -R nouchg in Terminal worked for me. It unlocked the files and I was then able to empty the trash.

  • GregoryBL Calculating status...
    Currently Being Moderated
    Jul 28, 2013 5:56 AM (in response to Recreationsdesign)

    Another thing to try:

     

    Follow Recreationsdesign's instructions except in step 1...

     

    Type: sudo chflags -R noschg

     

    You will be prompted to type your password after you press return in step 5 and when you type it won't show on screen - just go slowly (stylefire I know you know how to do this).

     

    Hope that helps - it's how I got rid of a backup of the crashplan application. I'm not sure why they put a system immutable flag on it, but it worked for me.

  • nbar Level 5 Level 5 (6,480 points)
    Currently Being Moderated
    Jul 28, 2013 6:01 AM (in response to stylefire)

    What was the format of the external drive? If it was anything other than HFS+ or FAT32, you could run every bash command in the world and your trash wouldn't empty (since your drive would be READ only). ACL + permissions don't apply otherwise.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.