1

How to purge a Kafka Topic?

 2 years ago
source link: https://www.cloudkarafka.com/blog/how-to-purge-a-kafka-topic.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How to purge a Kafka Topic?

Written by Lovisa Johansson

2018-05-08

Frequently Asked Apache Kafka Question: How do I purge a Kafka Topic?

The easiest way to purge a topic is to temporarily change the retention time and then resetting it back.

Start by updating the retention time on the topic to one second and then wait for the purge to take effect. Once the topic is purged, you can restore the previous retention.ms value.

CloudKarafka allows users to configure the retention period on a per-topic basis. The time can be specified via the Kafka management interface for dedicated plans or via the topics tab for the plan Developer Duck.

Enjoy this article? Don't forget to share it with others. 😉


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK