# How to clean up empty Kafka topics

**URL:** <https://ask.lenses.io/t/how-to-clean-up-empty-kafka-topics/47>\
**Category:** Lenses\
**Created:** [April 26, 2023, 9:01pm UTC](https://ask.lenses.io/t/how-to-clean-up-empty-kafka-topics/47 "2023-04-26T21:01:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefanbot](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@stefanbot](https://ask.lenses.io/u/stefanbot)\
**Post date:** [April 26, 2023, 9:01pm UTC](https://ask.lenses.io/t/how-to-clean-up-empty-kafka-topics/47/1 "2023-04-26T21:01:07Z")

</div>

We are trying to clean up our Apache Kafka cluster by identify the empty topics.

Is there any option in Lenses from UI or command line or API to get listing empty topic (zero bytes)?

---

<div class="post-metadata">

**Author:** ![guillaume.ayme](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/guillaume.ayme/32/64_2.png) [@guillaume.ayme](https://ask.lenses.io/u/guillaume.ayme)\
**Post date:** [April 26, 2023, 9:06pm UTC](https://ask.lenses.io/t/how-to-clean-up-empty-kafka-topics/47/2 "2023-04-26T21:06:25Z")

</div>

Since Lenses 5.1, you can now identify empty topics from the Explore page (there’s also an API).

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/lenses1/original/1X/6e54bc0aa7d9e43cdada343ffd6c759eb3dfdfdd.jpeg)

5.2 (coming soon) should include ability to bulk delete the topics.
