27.2. Uninstalling Streams for Apache Kafka using the CLI
This procedure describes how to use the oc command-line tool to uninstall Streams for Apache Kafka and remove resources related to the deployment.
Prerequisites
-
Access to an OpenShift cluster using an account with
cluster-adminorstrimzi-adminpermissions. You have identified the resources to be deleted.
You can use the following
ocCLI command to find resources and also verify that they have been removed when you have uninstalled Streams for Apache Kafka.Command to find resources related to a Streams for Apache Kafka deployment
oc get <resource_type> --all-namespaces | grep <kafka_cluster_name>Replace <resource_type> with the type of the resource you are checking, such as
secretorconfigmap.
Procedure
Delete the Cluster Operator
Deployment, relatedCustomResourceDefinitions, andRBACresources.Specify the installation files used to deploy the Cluster Operator.
oc delete -f install/cluster-operatorDelete the resources you identified in the prerequisites.
oc delete <resource_type> <resource_name> -n <namespace>Replace <resource_type> with the type of resource you are deleting and <resource_name> with the name of the resource.
Example to delete a secret
oc delete secret my-cluster-clients-ca-cert -n my-project