Delete Kafka clusters

You can delete a cluster using the Confluent Cloud Console, Confluent CLI, or REST API. You cannot restore a deleted cluster.

To prevent accidental deletion of a Kafka cluster, enable Cluster Deletion Protection on Confluent Cloud. If a cluster has deletion protection enabled, you cannot delete the cluster until you disable protection.

Confluent retains deleted clusters for a brief period after you delete them. For more information, contact Confluent Cloud Support.

Cloud Console

  1. Navigate to the clusters page for your environment.

  2. Select Cluster Settings.

  3. Click Delete cluster, enter the cluster name, and click Continue.

    Console workflow to delete Kafka cluster

Confluent CLI

To delete a cluster, run the following command in your terminal:

confluent kafka cluster delete <id> [flags]

In the following example, highlighted text indicates your input:

confluent kafka cluster delete lkc-123exa

Are you sure you want to delete Kafka cluster "lkc-123exa"?
To confirm, type "my-new-name". To cancel, press Ctrl-C:

my-new-name

Deleted Kafka cluster "lkc-123exa".

Confluent Cloud APIs

To delete a cluster, make a DELETE request specifying the environment and cluster.

Request

This request structure applies to all cluster types.

DELETE /cmk/v2/clusters/{id}?environment={environment_id}

Parameter

Required or Optional

Description

id

Required

Path parameter specifying the identifier for the cluster to delete.

environment

Required

Query parameter specifying the identifier for the environment that contains the cluster to delete.

Response

Success returns an HTTP 204 No Content.