// Module included in the following assemblies:
//
// assembly-using-the-user-operator.adoc

[id='deleting-kafka-user-{context}']
= Deleting a Kafka user

This procedure describes how to delete a Kafka user created with `KafkaUser` {ProductPlatformName} resource.

.Prerequisites

* A running Kafka cluster.
* A running User Operator.
* An existing `KafkaUser` to be deleted.

.Procedure

. Delete the `KafkaUser` resource in {ProductPlatformName}.
+
ifdef::Kubernetes[]
On {KubernetesName} this can be done using `kubectl`:
+
[source,shell,subs=+quotes]
kubectl delete kafkauser _your-user-name_
+
endif::Kubernetes[]
On {OpenShiftName} this can be done using `oc`:
+
[source,shell,subs=+quotes]
oc delete kafkauser _your-user-name_
+

.Additional resources

* For more information about deploying the Cluster Operator, see xref:cluster-operator-str[].
// TODO: Uncomment link after merging with the other PR
//* For more information about deploying the Entity Operator, see xref:assembly-kafka-entity-operator-deployment-configuration-kafka[].
* For more information about the `KafkaUser` object, see xref:type-KafkaUser-reference[`KafkaUser` schema reference].
