Uninstallation
Before uninstalling
Before uninstalling, please make sure that you have a proper backup of the Horizon component. That includes:
-
the database contents
-
a copy of your application secrets (in particular the SSV secret). Without it, you won’t be able to decrypt your database and it will become useless.
If not, once uninstalled, all the Horizon data will be irremediably lost!
Uninstallation procedure
-
RPM
-
Kubernetes
First, uninstall Horizon with the following commands:
$ systemctl stop horizon
$ yum remove horizon
$ rm -rf /opt/horizon
$ rm -rf /var/log/horizon
$ rm -f /etc/default/horizon
If NGINX was installed alongside with Horizon, you can remove it with the following commands:
$ systemctl stop nginx
$ yum remove nginx
$ rm -rf /etc/nginx
$ rm -rf /var/log/nginx
The same cleanup operation apply to MongoDB, which can be removed with the following commands:
$ systemctl stop mongod
$ rpm -qa | grep -i mongo | xargs rpm -e
$ rm -rf /var/log/mongodb
$ rm -rf /var/lib/mongodb
To uninstall Horizon from your cluster, simply run:
$ helm uninstall horizon -n horizon
This will uninstall Horizon. If you installed a local MongoDB instance through the Horizon’s chart, it will also be uninstalled, meaning you’ll lose all data from the instance.