Skip to main content

Your submission was sent successfully! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates from Canonical and upcoming events where you can meet our team.Close

Thank you for contacting us. A member of our team will be in touch shortly. Close

Clean up the environment

In this tutorial, we’ve successfully:

  • Deployed MongoDB on LXD
  • Scaled our deployment
  • Added and removed database users
  • Enabled and disabled TLS

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

Remove Charmed MongoDB

If you remove Charmed MongoDB as shown below, you will lose all data stored in MongoDB.

To remove Charmed MongoDB K8s, delete the juju model it is hosted on:

juju destroy-model tutorial --destroy-storage --force

Then, remove the overlord Juju controller. You can see all the available controllers by entering juju controllers.

To remove the overlord controller used in this tutorial, enter:

juju destroy-controller overlord

Remove Juju

If 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

You’ve successfully completed our Charmed MongoDB K8s tutorial :tada:

What next?

Join the community!

Last updated 27 days ago. Help improve this document in the forum.