Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Cannot empty trash of a stubborn item

Cannot empty trash of a stubborn item.


My trash is completely empty except for a folder “MSU” that contains another folder “Acute calcific periarthritis” that contains an image “1009964.jpg”.


First, the basics: “Finder>Empty Trash”:


“The operation can’t be completed because an unexpected error occurred (error code -50).”

Continue

“The operation can’t be completed because an unexpected error occurred (error code -50).”

Continue

“The operation can’t be completed because the item “MSU” is in use.


So then I try the terminal:


[mycomputername:~] myusername% sudo rm -R /Users/myusername/.Trash/MSU

rm: /Users/myusername/.Trash/MSU/Acute calcific periarthritis/1009964.jpg: Invalid argument

rm: /Users/myusername/.Trash/MSU/Acute calcific periarthritis: Invalid argument

rm: /Users/myusername/.Trash/MSU: Directory not empty


Guessing the problem is the weird character at the end of the name of the folder, “Acute calcific periarthritis” I try to rename that folder “xxx”.

“The name “xxx” can’t be used. Try using a name with fewer characters, or with no punctuation marks.


I guess one option is to just leave this single folder “MSU” in my trash can forever, with its contained folder “Acute calcific periarthritis” and thats contained 100kb image “1009964.jpg”.


But it’s kind of irritating and I’d like to learn how to fix this.


Any thoughts would be greatly appreciated! Thank you very much.


PS I’ve totally restarted my 10.11.6 iMac Late 2014 multiple times and retried the above to no avail.

OS X El Capitan (10.11.6)

Posted on Apr 2, 2017 7:13 AM

Reply
Question marked as Best reply

Posted on Apr 9, 2017 3:58 AM

Your Late-2014 iMac was sold by Apple from 2014-10-16 through 2015-10-13. It originally shipped with Yosemite pre-installed. If you never separately downloaded Yosemite from the Mac App Store prior to the release of El Capitan in Fall 2015, then the full Yosemite installer is no longer available to you for download (or Apple purchase), and you will not be able to remove that nul-byte containing filename without Yosemite.


Your options in practical priority:

  1. You know a trustworthy person that has a bootable, Yosemite USB Stick made from a legitimate Yosemite installer download from the Apple Store. You are not going to install Yosemite, just get at its Utilities menu from the boot screen, choose Terminal, and then navigate to your home directory's .Trash folder as I mentioned previously. Once the file is removed, you boot normally back into El Capitan.
  2. Check with the closest Apple retail store to determine if they can do one of the following at the Genius bar (appointment):
    1. Make a bootable Yosemite USB stick for you.
    2. Boot your iMac with Yosemite at the Apple Store, if you lug it in to them, and then remove the nul-byte file there.
    3. Migrate your old account and files (without its .Trash file) to a new administrator account.

      Perform full backup of the new account. Your old Time Machine backups will no longer match the new user ID, and restoring from them will require manual dexterity in the Terminal.

17 replies

Cannot empty trash of a stubborn item

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.