Since installing Snow Leopard, I've noticed that files I've thrown in the Trash can't be deleted until I quit the app that handled the file. For example, if I attach an image to an email message, send the message and then delete the original file, I can't empty the Trash (even an hour later) until I quit Mail. Same for .rtf files opened in TextEdit. This seems screwy. Comments appreciated.
20" iMac 2.16GHz Core 2 Duo,
Mac OS X (10.6),
13" 2.53GHz MacBook Pro
.. just as a check, after the upgrade to 10.6, did you run "repair permissions" in Disk Repair?.. are these files open when you attempt to trash them and empty the trash? If so, then close them first.
Yes, that happens at times. Sometimes the apps haven't really let go, and this has been that way since before Snow Leopard. In my experience, at least.
It will sometimes take a little bit of time, say a minute or so after closing the app. And then sometimes simply doing a second try of emptying the Trash after a minute or so works out.
And yet, on rare occasion just having had selected them in the Finder or an info window was a problem, but not so much so in Snow Leopard.
I believe there was a support article on this for previous versions. It essentially said the workaround was to restart and then the Trash can be empty in those rare circumstances. In other words, next time you start up, you should be able to empty the trash.
If you choose to continue emptying the Trash when it gives that error, it will at least delete everything else. From what I've noticed, it's improved quite a bit with Snow Leopard.
I'm not usually needing more disk space that soon anyways. Still plenty of space remaining and I try to make sure to keep it that way. As such, I don't usually worry about. Often there's a folder named "Recovered items" (or something like that) in the Trash when I start up, so it's not like it's unusual for there to be something in Trash at start up anyways. As such, I probably don't really notice it much anymore.
You can try relaunching the Finder and see if that does it, but that would seem extreme for me. I'd just keep doing whatever else I want to do until the next time I decide to empty the Trash. I often quit apps anyways instead of leaving them open all the time. It keeps them out of my Cmd-tabbing when I don't have any documents open. And they restart fast enough that it doesn't matter.
For me, this seems to be a problem only with Mail attachments at the present time. I can empty the Trash as soon as I quit the Mail app. Not a big problem, but not correct behavior either.
Update: It now appears that files I download from the internet (as well as Mail attachments) cannot be deleted from the Trash until I log out and log back in. Very inrritating at this point. I'm getting the "The operation can’t be completed because the item [filename] is in use" message way too often. And, of course, the files in question are never actually in use at all.
Just out of curiosity… Are you emptying the Trash with the Trash window open?
Sometimes when I do that I get that message. So, I wait a moment and empty it again but without opening Trash window. I tend to use the keyboard shortcut, but you can also try the menu from the nenubar or Dock.
As a variation on this theme expressed in this thread, when I try to empty my Trash right after deleting something, I now routinely get a message from Trash that says,
"The operation can’t be completed because one or more required items can’t be found. (Error code -43)".
I have no idea what the supposedly missing items are; Snow Leopard doesn't say. However, if I wait a minute or two after deleting something, the system empties the Trash and I no longer get that message.
Incidentally, I, too, ran Repair Disk Permissions from Disk Utility after I installed Snow Leopard. When I did, permissions were repaired successfully, with these two notable exceptions:
"Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired."
-and-
"Warning: SUID file "System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Reso urces/Locum" has been modified and will not be repaired."
I don't know what I can do about that -- or if I even
need to do something about it, or if it's something related to my inability to empty my Trash immediately after deleting something; it's just something reported by Disk Utility now that I've installed Snow Leopard.
If you have repaired permissions, double checked that no programs are running. Even rebooted and it is still there you could try holding down the Option key while you empty trash. That should force it to empty, in use or not.
I'd like to know if Apple Supprt/Techs even read the forums. Anyway, I have the same problem ever since I updated to Snow Leopard. I have to quit Mail in order to delete the items in Trash. Only happening with Mail attachments and just have to restart the app. I need a fix, and from the looks of it, so do many others.