Charmed OpenSearch Tutorial | Clean up the environment

Charmed OpenSearch Tutorial > 7. Clean up the environment

Clean up the environment

In this tutorial, we’ve successfully:

  • Deployed OpenSearch on LXD
  • Enabled TLS
  • Integrated with a client application
  • Rotated user credentials
  • Scaled our deployment

You may now keep your OpenSearch deployment running to continue experimenting or remove it entirely to free up resources on your machine.

Remove Charmed OpenSearch

Warning: When you remove Charmed OpenSearch as shown below, you will lose all the data in your cluster.

To remove Charmed OpenSearch and the model it is hosted on, run this command:

juju destroy-model tutorial --destroy-storage --force --no-wait

The next step is to remove the Juju controller. You can see all of the available controllers by entering juju controllers.

To remove the controller created for this tutorial, enter:

juju destroy-controller opensearch-demo

Remove Juju

Warning: When you remove Juju as shown below you will lose access to any other applications you have hosted on Juju.

To remove Juju altogether, enter:

sudo snap remove juju --purge

What next?