7. Cleanup your environment

This is a part of the Charmed Apache Kafka K8s Tutorial.

Remove Charmed Apache Kafka K8s and Juju

If you’re done using Charmed Apache Kafka K8s and Juju and would like to free up resources on your machine, you can remove Charmed Apache Kafka K8s, Charmed Apache Zookeeper K8s and Juju.

Caution

Removing Charmed Apache Kafka K8s as shown below will delete all the data in the Apache Kafka. Further, when you remove Juju as shown below you lose access to any other applications you have hosted on Juju.

To remove Charmed Apache Kafka K8s and the model it is hosted on run the command:

juju destroy-model tutorial

Next step is to remove the Juju controller. You can see all of the available controllers by entering juju controllers. To remove the controller enter:

juju destroy-controller overlord

Finally to remove Juju altogether, enter:

sudo snap remove juju --purge

What’s next?

In this tutorial, we’ve successfully deployed Apache Kafka, added/removed users, connected client applications and even enabled and disabled TLS. If you’re looking for what to do next you can: