Ubuntu uninstalls wine and permanently clears related files. 0. uninstalls wine. In SoftwareCenter or sudo aptitude purge wine1. Delete ~ /. Wine directory. 2. Delete ~ /. Local/share/applications .~ /. Local/share/applications/wine directory. 3. Delete ~ /. Local/share/applications/mimeinfo. cache file content related to wine. Delete ~ /. Local/share/applications/mimeapps. list content related to wine. 4. Delete ~ /. Config/menus/applications-merged directory. 5. Delete ~ /. Config/menus directory 6. Open the. config/menus/applications. menu file and delete wine-related content in the file. 7. Clear ~ All files named x-wine-extension-* in the/. local/share/mime/packages directory. Then run the update-mime-database ~ command ~ /. Local/share/mime Update file type database 8. Delete the following three files:/usr/share/app-install/desktop/wine. desktop/usr/share/app-install/desktop/wineconfig. desktop/usr/share/app-install/desktop/winefish. top9: Delete the content related to wine and wine in the following three directories :~ /. Local/share/applications ~ /. Local/share/desktop-directories ~ /. Local/share/icons 10, ies4linux directly go to the home directory. the ieslinux directory can be deleted directly. 11. Uninstall unused software packages. Enter sudo apt-get autoremove to completely delete wine.