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

Why can't I empty the trash?

I have a Mac Mini with OSX Lion. When I tell it to empty the trash it takes a minute or so to "prepare" to empty then tells me I have over 330,000 items in the trash can... it tells me some of them are locked so I tell it to delete all files. It then tells me that the operation cannot be completed because I do not have permission to access some of the items.


What's this all about????? How did 330,000 items get in my trash? Why can't I delete them? I've had this Mac less than a week... any ideas???

Mac mini, Mac OS X (10.7.3)

Posted on Mar 5, 2012 1:18 PM

Reply
9 replies

Mar 6, 2012 8:53 AM in response to R2G

Back up all data if you haven’t already done so. Before proceeding, you must be sure you can restore your system to the state it’s in now.


Launch the Terminal application in any of the following ways:


Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)


In the Finder, press the key combination shift-command-U. The application is in the folder that opens.


If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Terminal in the page that opens.


Drag or copy – do not type – the following line into the Terminal window, then press return:


sudo ls -ARl .Trash /.Trashes /Volumes/*/.Trashes


You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.


The command may produce a huge amount of output. If it does, stop it by pressing the key combination command-period, or closing the Terminal window.


The output will be a list of files that are in the Trash, including files you can't see in the Finder.


If you're sure you want to delete all those files, following the instructions here:


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

Mar 6, 2012 10:59 AM in response to Linc Davis

It sound slike what happened was the we've been using a sata hard drive from a previous iMac as external storage and someone took everything from that drive (from the old iMac) and drug that into the trash, not anything partaining to the current Mac... could this be creating some problem?

Why can't I empty the trash?

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