Run the following command from the DC/OS CLI to uninstall Kafka. Alternatively, you can uninstall Kafka from the DC/OS web interface. More information about uninstalling DC/OS services.
name with the name of the kafka instance to be uninstalled.
$ dcos package uninstall --app-id=<name> kafka
Then, use the framework cleaner script to remove your Kafka instance from Zookeeper and to destroy all data associated with it. The script require several arguments, the values for which are derived from your service name: