Uninstallation

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

Uninstalling Stream consists in uninstalling:

  • The Stream service;

  • The MongoDB service;

  • The NGINX service.

Uninstallation procedure

  • RPM

  • Debian

  • Kubernetes

First, uninstall Stream with the following commands:

 $ systemctl stop stream
 $ yum remove stream
 $ rm -rf /opt/stream
 $ rm -rf /var/log/stream
 $ rm -f /etc/default/stream

If NGINX was installed alongside with Stream, 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

First, uninstall Stream with the following commands:

 $ systemctl stop stream
 $ apt remove stream
 $ rm -rf /opt/stream
 $ rm -rf /var/log/stream
 $ rm -f /etc/default/stream

If NGINX was installed alongside with Stream, you can remove it with the following commands:

 $ systemctl stop nginx
 $ apt 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
 $ apt-get purge "mongodb-org*"
 $ rm -rf /var/log/mongodb
 $ rm -rf /var/lib/mongodb

To uninstall Stream from your cluster, simply run:

$ helm uninstall stream -n stream

This will uninstall Stream. If you installed a local MongoDB instance through the Stream’s chart, it will also be uninstalled, meaning you’ll lose all data from the instance.

Before uninstalling Stream, if you wish to keep your database, please back up your application secrets (in particular the keyset). Without it, you won’t be able to decrypt your database and it will become useless.