kafkatopic delete

Delete a Kafka topic.

Syntax

IMPORTANT
Ensure that the mapr-kafka package is installed on the server node, before running the kafkatopic delete command. When mapr-kafka package is not installed, the following error is encountered: Command execution failed! 'kafkatopic' commands requires 'mapr-kafka' package.
CLI

The command deletes a Kafka topic.

$ maprcli kafkatopic delete -topic <topicname>
REST
http[s]://<host>:<port>/rest/kafkatopic/delete?topic=<topicname>

Parameters

Parameter Description
-topic The topic name. This is a mandatory parameter.

Examples

Delete a topic by the name day_temperature.

$ maprcli kafkatopic delete -topic day_temperature