Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to remove all programs associated to Wine and Wine itself in one command, can it be done? The whole point of this question is that I don't want to find any files connected to wine.

share|improve this question
up vote 6 down vote accepted


sudo apt-get remove wine
rm -rf ~/.wine

If you really want it to be one command, replace the newline between the two lines with &&

That will remove Wine (if you installed it from the repo) and it'll destroy the default installation area for applications.

Things it won't do:

  • It won't remove Wine if you installed it without a package.
  • It won't delete things that have been installed to non-standard places.
  • It won't delete files that Wine applications have created outside of ~/.wine
  • It won't clean up your menu.
  • It won't clean up any file associations you've pointed at Wine apps.
  • It won't call you tomorrow morning.

Clean up your Menus with Alacarte

Because the above won't remove old program links in your menus, you need to manually remove the Wine applications. Thankfully in recent versions of Wine, all programs are automatically clustered under a "Wine" submenu. We just need to hide or remove this:

  1. Right click the Menu button and click Edit Menus
  2. Find the Wine portion and either delete it or uncheck it.
share|improve this answer
I will add sudo apt-get autoremove to remove wine dependencies (and also other unnecessary packages). – enzotib Apr 14 '11 at 8:56
ok, that wasn't what I was looking for, if I want to remove it from the menu how do I remove it then? – Alvar Apr 14 '11 at 9:01
Right click the Menu button → Edit Menus → Find the Wine portion and either delete it or uncheck it. – Oli Apr 14 '11 at 9:03
put that in your answer! :) – Alvar Apr 14 '11 at 9:36
lol @ call you tomorrow morning! – Chuck R Feb 20 '12 at 10:53
sudo apt-get remove wine
rm -rf $HOME/.wine
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

This would uninstall wine and remove all menus and icons.

share|improve this answer
@alvar what are you talking about? – Alaukik Apr 14 '11 at 10:03

I typed sudo apt-get remove wine* and it worked, it removed wine and all programs, but it also removed ubuntu-desktop. But now everything works thanks!

share|improve this answer
The right expression is not wine* but ^wine. (I'm leaving this comment because it seems that somebody run the command you have posted.) – Andrea Corbellini Aug 22 '13 at 16:12
I ran that command, that's why I posted it... @AndreaCorbellini – Alvar Aug 22 '13 at 16:36
You are not the only one – Andrea Corbellini Aug 22 '13 at 16:45

Answer by @Alaukik works great but as mentioned by Oli in his answer if the wine is installed without a package then following answer :

sudo apt-get remove wine
rm -rf $HOME/.wine
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

does not do the great job at complete removal of wine. So to have an absolute removal do the following along with above scripts.

sudo apt-get purge wine* ; sudo dpkg --purge wine*


share|improve this answer

Your Answer


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.