delete

Delete an object.

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

Synopsis

delete <DeleteCommandArg> [DeleteCommandArg Options]

delete cluster-acl

delete cluster-acl allow-principal|deny-principal <PrincipalType:name> [force|allow-host <String>|deny-host <String>|operation <String>]
Delete a cluster ACL.
Example:
cluster@myCluster> delete cluster-acl allow-principal type:Name

delete delegation-token-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.
Example:
cluster@myCluster> delete delegation-token-acl aclName

delete group-acl

delete group-acl <String> allow-principal|deny-principal <PrincipalType:name> [force|allow-host <String>|deny-host <String>|operation <String>]
Delete a group ACL.
Example:
cluster@myCluster> delete group-acl 0 allow-principal type:Name

delete topic

delete topic <TopicNames>[if-exists|disable-rack-aware]
Delete a topic or topics, with options.
Example:
cluster@myCluster> delete topic topic1, topic2, topic3

delete topic-acl

delete topic-acl <TopicNames> allow-principal|deny-principal <principalType:principalName> [force|allow-host <String>|deny-host <String>|operation <String>
Delete an ACL for a specified topic or topics.
delete topic-acl <Topic Names> consumer allow-principal <principalType:principalName> [group <String>|force|allow-host <String>]
Delete a consumer-role ACL for a specified topic or topics.
Example:
cluster@myCluster> delete topic-acl topic1 consumer allow-principal type:Name group 0

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.
Note: For explanations of options for the above command forms, see the Apache Kafka documentation.

See Also

create