Delete Kafka clusters

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

To delete a cluster

  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

Delete a cluster.

confluent kafka cluster delete <id> [flags]

For example (text you must enter is highlighted):

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".

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

Request (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.

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