Delete a topic using either of the following methods:
If your Kafka instances are connected using Logstash, stop Logstash before deleting topics. Otherwise, services may crash.
Select the region where your Kafka instance is located.
If your Kafka client version is later than 2.2, you can use kafka-topics.sh to delete topics.
For an instance with ciphertext access enabled, if allow.everyone.if.no.acl.found is set to false, topics cannot be deleted through the client.
./kafka-topics.sh --bootstrap-server ${connection-address} --delete --topic ${topic-name}
./kafka-topics.sh --bootstrap-server ${connection-address} --delete --topic ${topic-name} --command-config ./config/ssl-user-config.properties