Channel Revision Published Runs on
6/stable 229 20 Aug 2025
Ubuntu 22.04
6/candidate 229 20 Aug 2025
Ubuntu 22.04
6/beta 229 20 Aug 2025
Ubuntu 22.04
6/edge 229 20 Aug 2025
Ubuntu 22.04
8-transition/edge 226 15 Aug 2025
Ubuntu 24.04
8/candidate 228 07 Aug 2025
Ubuntu 24.04
8/beta 228 07 Aug 2025
Ubuntu 24.04
8/edge 228 06 Aug 2025
Ubuntu 24.04
5/stable 117 20 Apr 2023
Ubuntu 22.04
5/candidate 117 20 Apr 2023
Ubuntu 22.04
5/edge 139 21 Nov 2023
Ubuntu 22.04 Ubuntu 20.04
5/edge 109 06 Mar 2023
Ubuntu 22.04 Ubuntu 20.04
3.6/stable 100 28 Apr 2023
Ubuntu 20.04 Ubuntu 18.04
3.6/candidate 100 13 Apr 2023
Ubuntu 20.04 Ubuntu 18.04
3.6/edge 100 03 Feb 2023
Ubuntu 20.04 Ubuntu 18.04
juju deploy mongodb --channel 6/stable
Show information

Platform:

Ubuntu
24.04 22.04 20.04 18.04

This page is from the Charmed MongoDB Tutorials

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, delete the juju model it is hosted on:

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

Then, remove the overlord Juju controller:

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 tutorial :tada:


What next?

Join the community!


Help improve this document in the forum (guidelines). Last updated 10 months ago.