kafka:DeleteTopic

Write

kafka:DeleteTopic is a Write access-level action in the kafka service. Grants permission to delete a Kafka topic from an MSK cluster

Resource types

ARNs that kafka:DeleteTopic can be scoped to in an IAM policy.

arn:${Partition}:kafka:${Region}:${Account}:topic/${ClusterName}/${ClusterUuid}/${TopicName}
topic

Condition keys

No condition keys are documented for this action.

Dependent actions

To use kafka:DeleteTopic you may also need to grant:

Example IAM policy

A minimal policy that allows kafka:DeleteTopic. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowKafkaDeleteTopic",
      "Effect": "Allow",
      "Action": "kafka:DeleteTopic",
      "Resource": "*"
    }
  ]
}

Related actions in kafka

View all kafka actions →