Kafka 2.0.0 Cheat Sheet Kafka Topics List existing topics ./kafka-topics --zookeeper localhost:2181 --list Describe a topic ./kafka-topics --zookeeper localhost:2181 --describe --topic mytopic Purge a topic ./kafka-topics --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000