Uninstallation

Before uninstalling, please make sure that you have a proper backup of the Horizon component. Once uninstalled, all the Horizon data will be irremediably lost!

Uninstalling Horizon consists of uninstalling:

  • The Horizon service;

  • The MongoDB service;

  • The NGINX service.

Uninstalling Horizon

Access the server through SSH with an account with administrative privileges;

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

Uninstalling NGINX

Access the server through SSH with an account with administrative privileges;

Uninstall NGINX with the following commands:

$ systemctl stop nginx
$ yum remove nginx
$ rm -rf /etc/nginx
$ rm -rf /var/log/nginx

Uninstalling MongoDB

Access the server through SSH with an account with administrative privileges;

Uninstall MongoDB 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