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

How can I remove the wine folder and all the applications in that folder?

I've tried via synaptic but it keeps showing up in the application menu.

share|improve this question

10 Answers 10

In my case Wine did not get effectively uninstalled using the command:

sudo apt-get --purge remove wine

So I did the following (make sure to copy the exact commands):

rm -r "$HOME/.wine"
rm  $HOME/.config/menus/applications-merged/wine*
rm -r "$HOME/.local/share/applications/wine"
rm $HOME/.local/share/desktop-directories/wine*
rm $HOME/.local/share/icons/????_*.xpm

These commands delete files stored in hard disk that may lock uninstallation of wine. Quite possibly you will get some warnings about rm: remove write-protected regular file here. These can be enforced collectively by using the f option, i.e. rm -f and rm -rf instead of the above... but be the heck careful that you've actually typed the right paths!

After deleting the files run command:

sudo apt-get remove --purge wine

Do the following to correct any installation error.

sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
share|improve this answer
NOTE: there are no spaces in the rm -rf lines. Accidentally adding one could nuke your home folder without prompt. – user1717828 Jun 23 at 13:15
This is terribly dangerous and mostly unnecessary., – Braiam Jun 23 at 15:53
@user1717828 Adding cd $HOME and running all the commands with relative paths may avoid another accident. – Ismael Miguel Jun 24 at 13:10
pagal pila, the suggestion of @IsmaelMiguel is sound: please consider cd $HOME; and then the rms with relative paths. – Rmano Jun 28 at 19:22

Run these to get rid of menu entries instead of (or in addition to) using "Edit Menus".

rm $HOME/.config/menus/applications-merged/wine*
rm -r $HOME/.local/share/applications/wine
rm $HOME/.local/share/desktop-directories/wine*
share|improve this answer
This was the right solution for me, thanks! – mydoghasworms Dec 15 '11 at 7:05

In 11.04 and below (GNOME Classic)

When you install wine, it creates a "wine" menu in your applications menu, and this menu is partly user specific. To remove the menu entries, right click on your menu and click edit menus.

alt text

Now open the menu editor and disable or remove the wine related entries. You can also remove the /home/username/.wine folder be either enabling hidden files in nautilus, or by opening a terminal and typing rm -rf ~/.wine.

11.04 and up (Unity Desktop).

You need to open the menu editor from the Dash by press alt+f2 and type alacarte. Click on the icon, and the menu editor will come up.

share|improve this answer
I don't think it's wise to include the -f (force) option in the rm command. rm -r ~/.wine is much safer than an answer of "yes" on all warnings, because you can't be sure that "yes" will always be the best thing to do. – Firefeather Nov 30 '10 at 16:33
in this case it would be safe, he's just removing his wine folder. – RolandiXor Nov 30 '10 at 16:50
Before proceeding with this sort of command, make sure everything is alright. For any mistake, you can delete all fo your data – user Apr 17 '11 at 2:32
@cruciiedsoul: thanks for the unnecessary warnings on every answer of mine that you can fin. it's rather useless, but thanks anyway. – RolandiXor Apr 17 '11 at 12:50
@Firefeather: The answer below points to which also does rm -rf. Personally I do that everywhere where I know I can safely delete an entire directory and subdirectories. But that is deviating from this question, I guess :-) – mydoghasworms Dec 15 '11 at 5:46

Using some menu editors can cause trouble, as it hides rather than deletes the menu items - and they stay hidden if you reinstall the apps!

See for tips on how to uninstall wine and/or all wine apps.

share|improve this answer

First anwer is the easy form to get this, but its incomplete, the complet code is:

If you're installed wine from the official Ubuntu repositories:

sudo apt-get remove wine --purge

If you're installed wine from their official PPA:

sudo apt-get remove wine-1.3 --purge

Next, clean de context menu, menu entries, etc:

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
rm -f $HOME/.local/share/icons/*wine*

It need to reboot the system:

sudo reboot
share|improve this answer
The command rm -f $HOME/.local/share/icons/????_*.xpm is a bad idea, it removes ALL icons which do not have to be wine ones. – Lekensteyn Dec 15 '11 at 18:26
Thanks for the correction Lekensteyn, is needed to delete manualy the icons ins this format "????_" to match with "wine". Sorry for my bad english, i learning it. – edgerch Dec 15 '11 at 18:49
? matches a single character. If you want to match wine, just use rm -f $HOME/.local/share/icons/wine_*.xpm. But the latter command already matches any filename with "wine" in it, so it's obsolete. – Lekensteyn Dec 15 '11 at 19:00

I tried the sudo apt-get remove --purge wine . After this I had to give sudo apt-get autoremove In my case it solved the problem. Also have a look at this to remove all the ms core fonts.

share|improve this answer

Go to software manager. You will still find wine related packages installed. Remove them. This really works to remove wine from the menu.

share|improve this answer

I've had a similar problem but after doing

apt-get autoremove wine 

it worked

share|improve this answer

/home/admin/.config/menus/applications-merged .

replace admin with the pc name that was provided by at the time of installation

share|improve this answer
Welcome to askubuntu! Do you mean user name? – Elder Geek Jun 26 '14 at 16:39

Just go into Applications, and drag wine, and wine bottler, into the trash.

share|improve this answer
Doesn't work on all OSes, so this isn't really a good answer. – Thomas Ward Dec 16 '15 at 21:35

Your Answer


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