Skip to main content

Removing ONLYOFFICE Docs Enterprise Edition for Linux from your computer

Introduction​

If you run ONLYOFFICE Docs for Linux on your computer, there might be some cases when you need to completely remove it from your computer.

This guide will show you how to remove ONLYOFFICE Docs Linux version from your machine.

Warning

By following this user guide, all your DocumentServer data will be deleted. Please be careful.

Removing ONLYOFFICE Docs​

Run the following script to close all sessions and avoid losing data:

documentserver-prepare4shutdown.sh
note

Executing the script may take a long time (up to 5 minutes).

Use the following command on Ubuntu:

sudo apt purge onlyoffice-documentserver-ee

Use the following command on CentOS:

sudo yum remove onlyoffice-documentserver-ee

This command will remove the binaries and the configuration files of the onlyoffice-documentserver-ee package, but it will leave the dependencies installed with onlyoffice-documentserver-ee.

When executing the command, you will see the following warning: "This operation will remove the database which contain all ONLYOFFICE data. It is recommended to take backup before removing the database." Confirm the deletion by selecting Yes.

If you receive warnings stating "directory not empty so not removed", remove the directories manually:

sudo rm -rvf /etc/onlyoffice /var/www/onlyoffice
note

All installed prerequisites and components will remain and can be uninstalled separately.