restapache-kafkahttp-proxyjms-topic

How to delete Kafka topic using Kafka REST Proxy?


How to delete Kafka topic using Kafka REST Proxy? I tried the following command, but it returns the error message:

curl -X DELETE XXX.XX.XXX.XX:9092/topics/test_topic

If it's impossible, then how to update delete the messages and update the scheme of a topic?


Solution

  • According to the documentation API Reference, you cannot delete topics via REST Proxy, and I agree with them because such a destructive operation should not be available via interface that is exposed to outside.

    The topic deletion operation can be performed on the server where broker runs using command line utility. See How to Delete a topic in apache kafka