// Module included in the following assemblies:
//
// * networking/networking_operators/uninstalling-dpu-operator.adoc

:_mod-docs-content-type: PROCEDURE
[id="nw-dpu-operator-uninstall_{context}"]
= Uninstalling the DPU Operator

[role="_abstract"]
You can uninstall the DPU Operator from your cluster when you no longer need DPU device management, ensuring all workloads are deleted first.

To uninstall the DPU Operator, you must first delete any running DPU workloads. Follow this procedure to uninstall the DPU Operator.

.Prerequisites

* You have access to an {product-title} cluster using an account with `cluster-admin` permissions.
* You have the DPU Operator installed.

.Procedure

. Delete the `DpuOperatorConfig` CR by running the following command:
+
[source,terminal]
----
$ oc delete DpuOperatorConfig dpu-operator-config
----

. Delete the subscription that was used to install the DPU Operator by running the following command:
+
[source,terminal]
----
$ oc delete Subscription openshift-dpu-operator-subscription -n openshift-dpu-operator
----

. Remove the `OperatorGroup` resource that was created by running the following command:
+
[source,terminal]
----
$ oc delete OperatorGroup dpu-operators -n openshift-dpu-operator
----

. Uninstall the DPU Operator as follows:

.. Check the installed Operators by running the following command:
+
[source,terminal]
----
$ oc get csv -n openshift-dpu-operator
----
+
The following example shows the output:
+
[source,terminal]
----
NAME                                DISPLAY        VERSION               REPLACES   PHASE
dpu-operator.v4.22.0-202503130333   DPU Operator   4.22.0-202503130333              Failed
----

.. Delete the DPU Operator by running the following command:
+
[source,terminal]
----
$ oc delete csv dpu-operator.v4.22.0-202503130333 -n openshift-dpu-operator
----

. Delete the namespace that was created for the DPU Operator by running the following command:
+
[source,terminal]
----
$ oc delete namespace openshift-dpu-operator
----

.Verification

. Verify that the DPU Operator is uninstalled by running the following command. An example of successful command output is `No resources found in openshift-dpu-operator namespace`.
+
[source,terminal]
----
$ oc get csv -n openshift-dpu-operator
----
