Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

steinramm

macrumors member
Original poster
I have one file deleted but when I try to empty, it says:

"The operation can't be completed because the item is in use."

I have set all permissions of that file to Read & Write but still can't empty.

I also tried to rename file, move to another folder etc, but without success.
 
Hold down the option key and try emptying it

If that doesn't work, restart, then empty the trash.

the-it-crowd-s1e1-customer-support_200x113.jpg


"Have you tried turning it off and on again?"
 
Open Applications -> Utilities -> Terminal

Before trying to remove it from the command line, you might be able to release the file from whatever's holding it. To see what application is keeping it type (replace <filename> by the name of the file):
Code:
lsof | grep <filename>

That's lower case LSOF | GREP ...

If it returns the name of a recognizable application, try closing the app down. I'd do this rather than removing the file immediately since some apps recreate files they can no longer find.

Then you should be able to remove the file either normally from Finder, or by typing:
Code:
 rm ~/.Trash/*

Of course, even this might not work ... I was trying to help someone here yesterday with the same problem, but no matter what we suggested, he couldn't delete the file from his Trash.
 
This is an old thread, but when Googling "the operation can't be completed because the item is in use", which according to Google Instant many people do, this is the second result, so many people are still viewing it without finding any definite answer.

For anyone else having this problem:

Just had the same problem and solved it. The terminal returned no application except finder, but that's the point. It turns that if there's no other application running, the file is in use by the finder. So, relaunch the finder: command, alt, escape.
 
Relaunch the Finder - Brilliant!

Just had the same problem and solved it. The terminal returned no application except finder, but that's the point. It turns that if there's no other application running, the file is in use by the finder. So, relaunch the finder: command, alt, escape.

I could hug you. This worked brilliantly for me. It was so simple I couldn't believe it. Thanks so much!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.