Technical Anshu
Tutorials Blog
🧹 Clean Removal

Uninstall Microsoft Office from Wine Completely Clean Removal

A half-broken Wine Office leaves menus, files and settings scattered across Ubuntu, and those leftovers sabotage the next install. This removal is complete — the apps, the prefix, the menu entries and the residue — so a fresh attempt, or a clean switch to another route, starts from zero.

✍️ Technical Anshu🐧 Ubuntu and Linux⏱️ 6 minute read
🎥 Watch the video — if you are reinstalling after this cleanup, the video method is your fresh start

There are two levels of removal. The polite one uses Wine's own uninstaller and keeps the prefix for other apps. The complete one — this guide — removes the whole Office prefix, which is what you want when an install is corrupt beyond repair, or when you are done with Wine Office and moving to the web apps, a local suite, or a virtual machine.

Terminal — the complete removal in four commands
$ WINEPREFIX=$HOME/.wine-office wineserver -k $ rm -rf $HOME/.wine-office $ rm -rf $HOME/.local/share/applications/wine $ du -sh $HOME/.wine* Clean — no Wine Office folders remain
Stop Wine, delete the prefix, delete the launchers, then prove nothing is left.
1

First, Save Anything That Lives Inside the Prefix

Your documents normally live in your ordinary Linux folders, completely outside Wine — deleting the prefix cannot touch them. But anything you saved from inside Office into its own fake C drive is in the prefix, so take one look before deleting.

  1. Check with ls $HOME/.wine-office/drive_c/users/$USER/
  2. Look inside Documents and Desktop there for stray files
  3. Move anything precious into your real home folder first
2

Try the Built-In Uninstaller for a Light Removal

If Office is merely unwanted rather than broken, Wine's own Add and Remove Programs equivalent is the tidy first attempt.

  1. Run WINEPREFIX=$HOME/.wine-office wine uninstaller
  2. Select Microsoft Office in the list and click Remove
  3. Let it finish, then check whether the apps really left the menu

Under Wine this uninstaller sometimes reports success while leaving most of the suite behind. If Office still appears afterwards, do not wrestle with it — go straight to the full removal below.

3

Delete the Whole Prefix

This is the step that makes the removal complete. One folder holds the fake Windows, the registry, every DLL and Office itself — removing it removes all of it at once.

  1. Stop every running Wine process with WINEPREFIX=$HOME/.wine-office wineserver -k
  2. Delete the folder with rm -rf $HOME/.wine-office

That single command is also the strongest argument for the main guide's habit of a dedicated Office prefix — because the prefix holds only Office, deleting it can never harm another Wine app.

4

Remove Menu Entries and Shortcuts

Wine wrote launcher files for the app grid, and they survive the prefix itself. Stale Word and Excel icons after a removal come from here, not from a failed delete.

  1. Delete the launcher folder with rm -rf $HOME/.local/share/applications/wine — safe when Office was the only Wine software
  2. Check your Desktop for Office shortcut files and delete any you find
  3. Log out and back in if the app grid still shows ghosts — it rebuilds its index on login
5

Verify the Space Is Back

Prove the removal instead of assuming it. A full Office prefix commonly holds between 1.5 and 3 GB, and seeing that space return is your confirmation.

  1. Run du -sh $HOME/.wine* — an Office prefix should no longer appear
  2. Open the app grid once and confirm no Office entries remain
  3. Only if nothing else on the machine uses Wine, you may also remove Wine itself with sudo apt remove wine64 wine32 winetricks

Most people keep Wine installed — it is small, and a future experiment may want it. Removing Office was the goal; removing Wine is a separate decision.

🔴 Your documents are safe — removing Wine Office never touches files stored in your normal folders. Every DOCX and XLSX stays exactly where it was, ready to open in LibreOffice, OnlyOffice or the web apps the moment the prefix is gone.

🎥 Reinstalling Clean — Watch the Method

If this cleanup was preparation for a fresh attempt, the video shows the correct install order to follow next.

▶️ Watch Full Video
❓ Frequently Asked Questions

I deleted the prefix but the menu icons are still there

Those are launcher files under ~/.local/share/applications/wine, which outlive the prefix. Delete that folder and log out and back in — the icons will be gone.

Can I remove only Word and keep Excel

Not cleanly. Under Wine, Office installs and removes as one suite. Remove all of it, then reinstall and use the installer's custom option to choose only the components you want.

Will reinstalling after a full removal work better

Often, yes. Most repeat install failures come from leftovers of the failed attempt — damaged registry entries and half-copied files — and this removal eliminates exactly those.

This guide is based on the Technical Anshu video linked above • Stuck on a step? Ask in the video comments — you will get a reply 🙏