1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/das-operator-uninstalling-cli.adoc
2025-08-20 09:16:47 -04:00

96 lines
2.4 KiB
Plaintext

// Module included in the following assemblies:
//
// * operators/user/das-dynamic-accelerator-slicer-operator.adoc
//
:_mod-docs-content-type: PROCEDURE
[id="das-operator-uninstalling-cli_{context}"]
= Uninstalling the Dynamic Accelerator Slicer Operator using the CLI
You can uninstall the Dynamic Accelerator Slicer (DAS) Operator using the OpenShift CLI.
.Prerequisites
* You have access to an {product-title} cluster using an account with `cluster-admin` permissions.
* You have installed the OpenShift CLI (`oc`).
* The DAS Operator is installed in your cluster.
.Procedure
. List the installed operators to find the DAS Operator subscription by running the following command:
+
[source,terminal]
----
$ oc get subscriptions -n das-operator
----
+
.Example output
[source,terminal]
----
NAME PACKAGE SOURCE CHANNEL
das-operator das-operator redhat-operators stable
----
. Delete the subscription by running the following command:
+
[source,terminal]
----
$ oc delete subscription das-operator -n das-operator
----
. List and delete the cluster service version (CSV) by running the following commands:
+
[source,terminal]
----
$ oc get csv -n das-operator
----
+
[source,terminal]
----
$ oc delete csv <csv-name> -n das-operator
----
. Remove the operator group by running the following command:
+
[source,terminal]
----
$ oc delete operatorgroup das-operator -n das-operator
----
. Delete any remaining `AllocationClaim` resources by running the following command:
+
[source,terminal]
----
$ oc delete allocationclaims --all -n das-operator
----
. Remove the DAS Operator namespace by running the following command:
+
[source,terminal]
----
$ oc delete namespace das-operator
----
.Verification
. Verify that the DAS Operator resources have been removed by running the following command:
+
[source,terminal]
----
$ oc get namespace das-operator
----
+
The command should return an error indicating that the namespace is not found.
. Verify that no `AllocationClaim` custom resource definitions remain by running the following command:
+
[source,terminal]
----
$ oc get crd | grep allocationclaim
----
+
The command should return an error indicating that no custom resource definitions are found.
[WARNING]
====
Uninstalling the DAS Operator removes all GPU slice allocations and might cause running workloads that depend on GPU slices to fail. Ensure that no critical workloads are using GPU slices before proceeding with the uninstallation.
====