

# Delete a topic in an Amazon MSK cluster
<a name="msk-delete-topic"></a>

Deleting a topic permanently removes all its data, metadata, and partition information. This operation cannot be undone.

**Topics**
+ [Delete a topic using the AWS Management Console](delete-topic-console.md)
+ [Delete a topic using the AWS CLI](delete-topic-cli.md)
+ [Delete a topic using the API](delete-topic-api.md)

# Delete a topic using the AWS Management Console
<a name="delete-topic-console"></a>

1. Sign in to the AWS Management Console, and open the Amazon MSK console at [https://console.aws.amazon.com/msk/home?region=us-east-1\$1/home/](https://console.aws.amazon.com/msk/home?region=us-east-1#/home/).

1. In the list of clusters, choose the name of the cluster containing the topic you want to delete.

1. On the cluster details page, choose the **Topics** tab.

1. Select the topics you want to delete, then choose **Delete** from **Actions**.

1. Confirm the deletion, then choose **Delete**.

# Delete a topic using the AWS CLI
<a name="delete-topic-cli"></a>

Run the following command, replacing *ClusterArn* with the Amazon Resource Name (ARN) of your cluster and *TopicName* with the name of the topic you want to delete.

```
aws kafka delete-topic --cluster-arn ClusterArn --topic-name TopicName
```

The output of this command looks like the following JSON example.

```
{
    "topicArn": "arn:aws:kafka:us-east-1:123456789012:topic/MyCluster/abcd1234-abcd-dcba-4321-a1b2abcd9f9f-2/MyTopic",
    "topicName": "MyTopic",
    "status": "DELETING"
}
```

# Delete a topic using the API
<a name="delete-topic-api"></a>

To delete a topic using the API, see [DeleteTopic](https://docs.aws.amazon.com//msk/1.0/apireference/v1-clusters-clusterarn-topics-topicname.html#DeleteTopic).