Uninstall Observium Ubuntu

How to Completely Uninstall Observium from Ubuntu Whether you are migrating to a different monitoring solution or simply cleaning up your server, uninstalling Observium requires more than just removing a few files. Because Observium relies on a stack of dependencies—including a web server, a database, and several PHP modules—a proper cleanup ensures no orphan processes or security holes are left behind.

If you think you might need historical metrics or configurations again, back up the Observium database and the config.php file. uninstall observium ubuntu

DROP DATABASE IF EXISTS observium; DROP USER IF EXISTS 'observium'@'localhost'; DROP USER IF EXISTS 'observium'@'127.0.0.1'; FLUSH PRIVILEGES; EXIT; How to Completely Uninstall Observium from Ubuntu Whether

# Restart Apache to apply changes sudo systemctl restart apache2 DROP DATABASE IF EXISTS observium; DROP USER IF

Ignore these—they simply confirm the packages are already removed.

All your monitoring data, device history, and user accounts are stored in MySQL (MariaDB). You’ll want to drop the database to free up space. Log in to MySQL: sudo mysql -u root -p Use code with caution. Copied to clipboard List databases to find the correct name (usually DATABASES; Use code with caution. Copied to clipboard Drop the database: observium; EXIT; Use code with caution. Copied to clipboard 3. Remove the Web Server Configuration