Uninstall the XWiki Debian Packages

Last modified by superadmin on 2026/11/27 11:53

No XWiki package installed, the container, database and Java runtime removed with it, and the permanent directory gone only if you deleted it.

Steps

Removing an XWiki installed from the Debian packages is a matter of purging the packages you installed, and then deciding what to do with the data they leave behind.

  1. Purge the XWiki packages, which removes every package depending on xwiki-common.
    sudo apt purge xwiki-common
  2. Remove the servlet container, the database and the Java runtime that were installed as dependencies, if nothing else on the machine uses them.
    sudo apt autoremove --purge
  3. Delete the permanent directory, once you are sure you no longer need the attachments and the search index it holds.
    sudo rm -r /var/lib/xwiki/data
  4. List the installed packages: no XWiki package is left.
    apt list --installed | grep xwiki

FAQ

Is my wiki content deleted?

Not by the commands above: the content lives in the database, which dbconfig offers to drop when the package is purged and keeps if you decline.

Can I reinstall later and keep my wiki?

Yes, as long as you kept the database and the permanent directory; reinstalling the package and pointing it at the existing database brings the wiki back.

Related

Get Connected