Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have a program which, when deleting any app, also deletes the extra files and junk as well; including .plist files. Normally this works great though, this time around I've had a few files which won't allow me to empty the trash.

I get the following when I click on "Empty Trash":

The operation can’t be completed because the item “com.justinmind.prototyperfree.plist” is in use.

The operation can’t be completed because the item “com.marketcircle.Billings3.plist” is in use.

The operation can’t be completed because the item “com.opendns.osx.DNSCrypt-Menubar.plist” is in use.

The operation can’t be completed because the item “hewgill.com.Stack-Exchange-Notifier.plist” is in use.

I tried the following without success:

launchctl unload /System/Library/LaunchAgents/com.justinmind.prototyperfree.plist and launchctl unload /Users/myname/.Trash/com.justinmind.prototyperfree.plist

Not sure how to stop these things so I can empty the trash. Any help would be appreciated, thanks!

OS X 10.9 (13A603)

share|improve this question
    
rm -rf ~/.Trash/* should do the work. –  Matthieu Riegler Dec 11 '13 at 17:49
add comment

2 Answers

When you have problems to empty the trash, rm -rf ~/.Trash/* in the terminal does the job for you.

Edit :

You have to keep in mind that there might be multiple .Trash directories.
For example on a USB stick or a external Drive, OSX will create another .Trash at the root of the drive. So you might need to use rm -rf /Volumes/DriveName/.Trash.*

share|improve this answer
    
Great, thanks Matthieu! This is a more direct way of deleting vs the solution I found in my answer. –  Natetronn Dec 11 '13 at 18:15
    
Thanks, please also consider my edit. –  Matthieu Riegler Dec 11 '13 at 19:26
add comment

I'm not sure if I will continue running into this issue or not and or if this was the "correct" way of doing it though, the following worked to delete the files:

http://apple.stackexchange.com/a/24122/33469

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.