Unable to uninstall Wine apps

Wine apps often leave a lot of junk, for example, menu items over .doc files after installing Microsoft Office. To remove it, you have to:

rm .local/share/applications/wine-extension-*

To remove menu entries you have to edit:

usr/share/applications/mimeinfo.cache
~/.local/share/applications/mimeinfo.cache
~/.local/share/applications/defaults.list

And, right click on file you want to remove bad menu entries from, and choose Properties. On the 4th tab you can delete unnecessary entries.


How do I uninstall all Windows applications?

To remove all programs installed under Wine, remove the wineprefix (usually the ~/.wine directory) by carefully pasting the following commands into a terminal:

cd $HOME
rm -rf .wine

But that doesn't remove them from the system menu. To clean out the menus, carefully paste the following commands into a terminal:

rm -f $HOME/.config/menus/applications-merged/wine*
rm -rf $HOME/.local/share/applications/wine
rm -f $HOME/.local/share/desktop-directories/wine*
rm -f $HOME/.local/share/icons/????_*.{xpm,png}
rm -f $HOME/.local/share/icons/*-x-wine-*.{xpm,png}

After all that, right-click on the top panel and select Edit Menus:

contextual menu from right-clicking top panel, showing Help, Edit Menus, Remove From Panel, Move, and Lock To Panel, with Move grayed out and Lock To Panel checked

Then go to the Others tab and delete all the Microsoft Office launchers. (Or they might be in some other location, just search.)

Tags:

Wine

Uninstall