Skip to main content
Version: release-0.9

Delete a Kafka cluster

Termination policy

note

The termination policy determines how a cluster is deleted. Set the policy when creating a cluster.

terminationPolicyDeleting Operation
DoNotTerminateDoNotTerminate blocks delete operation.
HaltHalt deletes workload resources such as statefulset, deployment workloads but keep PVCs.
DeleteDelete deletes workload resources and PVCs but keep backups.
WipeOutWipeOut deletes workload resources, PVCs and all relevant resources included backups.

To check the termination policy, execute the following command.

kbcli cluster list mycluster -n demo
>
NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME
mycluster demo kafka kafka-3.3.2 Delete Running Sep 27,2024 15:15 UTC+0800

Steps

Run the command below to delete a specified cluster.

kbcli cluster delete mycluster