I am moving from Mac Office 2011 to Office 365. After running the uninstaller, An invisible file in the Excel package, Microsoft Office > Microsoft Excel > Contents > Resources > En.lproj > Help > Art > wheel, continues to show “in use” despite several restarts, so I cannot empty it from the trash. My UNIX skills are embryonic at best. How do I kill this file?
sudo rm didn't delete it, then maybe it somehow got the
schg flag set?
You could try this:
sudo chflags noschg /Users/bob/.Trash/nasty.file.ext sudo /bin/rm -f /Users/bob/.Trash/nasty.file.ext
As I mentioned in the comments, you could also try moving the file to /tmp/ and rebooting, since that usually clears out the /tmp/ but I have a sneaking suspicion that isn't going to help in this case.
Move (don't copy) that file to your desktop. Then reboot. Whatever process is looking for it, shouldn't be able to find it. Then you should be able to delete it from your desktop and finish the Uninstall process.
I will assume that you have no files that you need in your Trash (because why else would they be there?)
(I am assuming this is your own Mac and that you have an admin account, if that is not the case, please let us know).
Launch Terminal.app and enter this command:
sudo rm -rfv ~/.Trash/*
Be very careful:
sudo rm -rfv is just about the most dangerous command there is.
You will be prompted to enter your administrator password.
Enter it when prompted (it will not appear in Terminal when you type it).