Step 8: Delete the Amazon MSK Cluster - Amazon Managed Streaming for Apache Kafka

Step 8: Delete the Amazon MSK Cluster

In the final step of Getting Started Using Amazon MSK, you delete the MSK cluster that you created in Step 3: Create an Amazon MSK Cluster.

To delete the Amazon MSK cluster using the AWS CLI

  1. Run the following command on the computer where you have the AWS CLI installed.

    aws kafka list-clusters --region us-east-1
  2. In the output of the list-clusters command, look for the cluster Amazon Resource Name (ARN) that corresponds to the cluster that you want to delete. Copy that ARN.

  3. Run the following command, replacing ClusterArn with the ARN that you obtained when you ran the previous command.

    aws kafka delete-cluster --region us-east-1 --cluster-arn ClusterArn