Before you begin, make a full backup of your Observium database, RRD files, and configuration file ( /opt/observium/config.php ) in case you need to restore monitoring data later. For example:
Run ls /opt/observium . The terminal should return an error stating that the file or directory does not exist.
If you do not need the MySQL server for any other application, you can purge it as well. However, be aware that this will remove databases, not just the Observium one.
sudo mysql -u root -p -e "SHOW DATABASES;" | grep observium uninstall observium ubuntu
Delete the lines related to Observium (usually looking like */5 * * * * /opt/observium/poller.php ... ).
In this guide, we will walk through the process of completely removing Observium from an Ubuntu server.
sudo apt-get purge net-snmp net-snmp-utils rrdtool graphviz sudo apt-get autoremove --purge Use code with caution. Before you begin, make a full backup of
sudo rm -rf /var/www/html/observium # only if applicable
By default, Observium installs into the /opt/observium directory. This folder contains the core PHP scripts, the web front-end files, and the RRD files (which hold your historical performance graphs and can take up gigabytes of space). Force-remove the entire directory structure: sudo rm -rf /opt/observium Use code with caution.
Navigate to your server's IP address or domain in a web browser to confirm that the interface throws a 404 error or displays your default web server index page. If you do not need the MySQL server
sudo userdel observium sudo groupdel observium
Note: If a group was explicitly created for this user, the userdel command will typically remove it automatically. Step 6: Purge Unused Dependencies (Optional)
The default installation path is /opt/observium . This guide assumes that location. If you installed it elsewhere (e.g., /var/www/html/observium ), adjust the paths accordingly.
This step deletes the actual application files, web interface code, and all historical performance graphs (RRD files). Delete the entire installation directory: sudo rm -rf /opt/observium Use code with caution. Step 5: Clean Up Dependencies (Optional)