---
title: Charmhub | Deploy PgBouncer K8s using Charmhub - The Open Operator Collection
description: Deploy the latest version of PgBouncer K8s as a Kubernetes Operator on
  any cloud.
url: https://charmhub.io/pgbouncer-k8s/docs/t-cleanup-environment
---

# PgBouncer K8s

[Canonical](https://charmhub.io/publisher/data-platform "View all packages from Canonical")

* [Canonical](https://charmhub.io/publisher/data-platform "View all packages from Canonical")
* [Databases](https://charmhub.io/?filter=databases)

Platform:

1/stable 593

```
juju deploy pgbouncer-k8s --channel 1/stable --trust
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Relevant links

* [Homepage](https://ubuntu.com/data/postgresql)

---

#### Contacts

##### Maintainers

+ [Canonical Data Platform](mailto:data-platform@lists.launchpad.net)

* [Submit a bug](https://github.com/canonical/pgbouncer-k8s-operator/issues)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

# Clean up and extra info

This is part of the [PgBouncer K8s Tutorial](https://charmhub.io/pgbouncer-k8s/docs/tutorial). Please refer to this page for more information and the overview of the content.

## [Remove and clean up environment](https://charmhub.io/pgbouncer-k8s/docs/t-cleanup-environment#p-28303-remove-and-clean-up-environment)

If you’re done with testing and would like to free up resources on your machine, just remove Multipass VM.

**Warning**: when you remove VM as shown below, you will lose all the data in PostgreSQL and any other applications inside Multipass VM!

For more information, see [multipass delete](https://multipass.run/docs/delete-command).

```
multipass delete --purge my-vm
```

## [Next Steps](https://charmhub.io/pgbouncer-k8s/docs/t-cleanup-environment#p-28303-next-steps)

In this tutorial, we’ve successfully deployed PgBouncer, added/removed cluster members, added/removed users to/from the database, and even enabled and disabled TLS. You may now keep your deployment running and write to the database, or remove it entirely.

If you’re looking for what to do next, you can:

* Run [Charmed PostgreSQL VM on LXD](https://github.com/canonical/postgresql-operator).
* Check out our Charmed offerings of [MySQL K8s](https://charmhub.io/mysql-k8s) and [Kafka K8s](https://charmhub.io/kafka-k8s?channel=edge).
* Read about [High Availability Best Practices](https://canonical.com/blog/database-high-availability)
* [Report](https://github.com/canonical/pgbouncer-k8s-operator/issues) any problems you encountered.
* [Give us your feedback](https://chat.charmhub.io/charmhub/channels/data-platform).
* [Contribute to the code base](https://github.com/canonical/pgbouncer-k8s-operator)

---
