Skip to content

kafka delete-topic

Delete kafka topic

Description

Delete the topic provided from the cluster

Synopsis

kafka delete-topic
    [--site <site>]
    [--cluster <cluster>]
    <topic>

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

cluster - (string)

     Name of kafka cluster
     Example: --cluster "cluster-1"
     Default: default      Attributes: optional

topic - (string)

     Name of the topic
     Example: "topic-1"
     Default: _None_      Attributes: required

Examples

Input:

! kafka delete-topic "test-topic-1"
Output:
Topic "test-topic-1" is deleted

Access Control

To use this command, you need access to the following:

Field Value
Action "delete"
Service Type "kafka"
Service Instance cluster
Namespace
Object Type "topic"
Object ID topic

Please see Access Control for details.