---
title: Charmhub | Deploy Apache Kafka Connect using Charmhub - The Open Operator Collection
description: Deploy the latest version of Apache Kafka Connect on any cloud.
url: https://charmhub.io/kafka-connect/docs/t-cleanup-environment
---

# Apache Kafka Connect

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

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

Platform:

24.04

22.04

4/stable 37

```
juju deploy kafka-connect --channel 4/stable
```

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

---

#### Relevant links

* [Homepage](https://github.com/canonical/kafka-connect-operator)

---

#### Contacts

##### Maintainers

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

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

---

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

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

This is part of the [Charmed Apache Kafka Tutorial](https://charmhub.io/kafka-connect/docs/t-overview). Please refer to this page for more information and an overview of the content.

## [Clean up your environment](https://charmhub.io/kafka-connect/docs/t-cleanup-environment#p-25432-clean-up-your-environment)

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

Removing Charmed Apache Kafka 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 and the model it is hosted on run the command:

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

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?](https://charmhub.io/kafka-connect/docs/t-cleanup-environment#p-25432-whats-next)

In this tutorial, we’ve successfully deployed Apache Kafka, added/removed replicas, added/removed users to/from the cluster, and even enabled and disabled TLS.
You may now keep your Charmed Apache Kafka deployment running or remove it entirely using the steps in [Remove Charmed Apache Kafka and Juju](https://charmhub.io/kafka-connect/docs/t-cleanup-environment#remove-charmed-kafka-and-juju).
If you’re looking for what to do next you can:

* Run [Charmed Apache Kafka on Kubernetes](https://github.com/canonical/kafka-k8s-operator).
* Check out our Charmed offerings of [PostgreSQL](https://charmhub.io/postgresql?channel=edge) and [MongoDB](https://charmhub.io/mongodb?channel=5/edge).
* Read about [High Availability Best Practices](https://canonical.com/blog/database-high-availability)
* [Report](https://github.com/canonical/kafka-operator/issues) any problems you encountered.
* [Give us your feedback](https://matrix.to/#/#charmhub-data-platform:ubuntu.com).
* [Contribute to the code base](https://github.com/canonical/kafka-operator)

---
