Delete topic in Kafka 0.8.1.1


  • I need to delete the topic test in Apache Kafka 0.8.1.1.

    As expressed in the documentation here, I have executed:

    bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic test

    However, this results in the following message:

    Command must include exactly one action: --list, --describe, --create or --alter

    How can I delete this topic?
      May 23, 2019 2:55 PM IST
    0
  • Deleting topic isn't always working in 0.8.1.1

    Deletion should be working in the next release, 0.8.2

    kafka-topics.sh --delete --zookeeper localhost:2181 --topic your_topic_name

    Topic your_topic_name is marked for deletion.
    Note: This will have no impact if delete.topic.enable is not set to true.

    Is it possible to delete a topic?

    Jira KAFKA-1397

    This post was edited by Raji Reddy A at May 23, 2019 2:57 PM IST
      May 23, 2019 2:57 PM IST
    0