sudo rm -f /etc/apache2/sites-available/observium.conf sudo rm -f /etc/apache2/sites-enabled/observium.conf sudo systemctl reload apache2
Note: If a group was explicitly created for this user, the userdel command will typically remove it automatically. Step 6: Purge Unused Dependencies (Optional)
Additionally, stop the MySQL or MariaDB service (you'll remove the database in a later step). uninstall observium ubuntu
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.
sudo rm /etc/cron.d/observium
Navigate to your server’s IP address or domain name. You should see a standard web server default page or a 404 Not Found error, rather than the Observium login portal.
sudo crontab -u www-data -l | grep -v observium | sudo crontab -u www-data - sudo crontab -l | grep -v observium | sudo crontab - sudo rm -f /etc/apache2/sites-available/observium
Then, simply remove the entire Observium directory.
You have now successfully removed Observium, its database, and its configuration files from your Ubuntu server. If you are migrating, you can now proceed with installing your new monitoring tool. Only remove the Observium-specific packages if not shared