delete

Delete an object.

Use this command to delete an object on the cluster to which you are connected.

Synopsis

delete <DeleteCommandArg> [DeleteCommandArg Options]

Delete Command Forms

delete topic <TopicNames> [force | if-exists | topics-with-overrides | disable-rack-aware]
Delete a topic or topics, with options.
delete topic-acl <TopicNames> allow-principal | deny-principal <PrincipalType:name> [force | allow-host <String> | deny-host <String> | operation <String>]
Delete an ACL for a specified topic or topics.
delete topic-acl <TopicNames> producer allow-principal <PrincipalType:name> [force | allow-host <String> | cluster | transaction-id <String>]
Delete a producer-role ACL for a specified topic or topics.
delete topic-acl <TopicNames> consumer allow-principal <PrincipalType:name> [group <String> | force | allow-host <String>]
Delete a consumer-role ACL for a specified topic or topics.
delete cluster-acl allow-principal | deny-principal <PrincipalType:name> [force | allow-host <String> | deny-host <String> | operation <String>]
Delete a cluster ACL.
delete group-acl <String> allow-principal | deny-principal <PrincipalType:name> [force | allow-host <String> | deny-host <String> | operation <String>]
Delete a group ACL.
delete delegation-token-acl <String> allow-principal | deny-principal <PrincipalType:name> [force | allow-host <String> | deny-host <String> | operation <String>]
Delete a delegation token ACL.
Note: For explanations of options for the above command forms, see the Apache Kafka documentation.

Examples

cluster@myCluster> delete topic topic1, topic2, topic3

cluster@myCluster> delete topic-acl topic1 consumer allow-principal type:Name group 0

cluster@myCluster> delete cluster-acl allow-principal type:Name

cluster@myCluster> delete group-acl 0 allow-principal type:Name

cluster@myCluster> delete delegation-token-acl aclName 

See Also

create