Uninstall Observium Ubuntu -

After removing Observium, some dependencies might still be installed on your system. To remove them, run:

sudo apt-get autoremove

This command will remove any unused dependencies.

By default, Observium is installed in the /opt/observium directory. Removing this folder deletes the application logic, RRD data files, and logs.

sudo rm -rf /opt/observium

Note: If you installed Observium in a different location (e.g., /var/www/html/observium), adjust the path in the command above.


Observium requires many PHP extensions (php-mysql, php-snmp, php-gd, php-mcrypt, etc.). If you no longer need them for other applications, you can remove them. Be careful: other apps may depend on these. uninstall observium ubuntu

For Ubuntu, remove commonly used Observium PHP modules (example for PHP 8.1/8.2):

sudo apt purge php8.1-mysql php8.1-gd php8.1-snmp php8.1-curl php8.1-mcrypt \
                 php8.1-json php8.1-pear graphviz fping imagemagick

Alternatively, check the full list:

dpkg -l | grep php | grep -E "mysql|snmp|gd|curl|mcrypt"

Caution: If your server runs other PHP applications (e.g., WordPress, Nextcloud), do not purge PHP modules. Only remove the Observium-specific packages if not shared.


Observium uses MySQL or MariaDB. The default database name is observium. Dropping the database is the most critical step in removing all monitoring data. After removing Observium, some dependencies might still be

First, log into your database:

sudo mysql -u root -p

Then, execute the following SQL commands:

DROP DATABASE IF EXISTS observium;
DROP USER IF EXISTS 'observium'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Note: If you used a different username (e.g., observium_user) or a remote host, adjust the DROP USER command accordingly.

Double-check removal:

sudo mysql -u root -p -e "SHOW DATABASES;" | grep observium

(You should see no output.)


You need to remove the VirtualHost configuration so the web server stops trying to load the deleted directory.

For Apache:

# Remove the config file
sudo rm /etc/apache2/sites-available/observium.conf
# If you created a symbolic link in sites-enabled, remove it:
sudo rm /etc/apache2/sites-enabled/observium.conf
# Restart Apache to apply changes
sudo systemctl restart apache2

For Nginx:

sudo rm /etc/nginx/sites-available/observium.conf
sudo rm /etc/nginx/sites-enabled/observium.conf
sudo systemctl restart nginx