Clean up

This is the last part of the Apache ZooKeeper K8s charm tutorial. After finishing all previous parts, make sure to free up all resources used by the tutorial’s environment.

Destroy the Apache ZooKeeper K8s application

Destroy the entire Apache ZooKeeper K8s application:

juju remove-application zookeeper-k8s

This will remove Apache ZooKeeper K8s from your Juju model.

Destroy other applications

Let’s say we are not sure what other applications we have in our model. Use juju status command:

juju status

Now, remove the applications mentioned in the output:

juju remove-application kafka-k8s

Finally, make sure that deletion is complete with juju status and remove the Juju model:

juju destroy-model tutorial

Destroy the VM

Exit the VM shell by pressing Ctrl + D and destroy the entire Multipass VM created for this tutorial:

multipass stop zk-vm
multipass delete --purge zk-vm

This concludes the clean up process and the Apache ZooKeeper K8s charm tutorial.