Uninstall PX-CSI
You might need to uninstall Portworx CSI if it was installed in the wrong namespace or if you plan to decommission a cluster. You can uninstall Portworx CSI from your clusters using the Portworx Operator by updating the StorageCluster object.
The PVCs, backend volumes, and snapshots are not deleted. These resources remain in a stale state.
- Kubernetes
- OpenShift
-
Use the
kubectl getcommand to display the name of your Portworx CSI storage cluster:kubectl get -n <px-namespace> storagecluster <storagecluster-name> -
Delete the StorageCluster by running the following command:
kubectl delete storagecluster <storagecluster-name> -n <px-namespace>This operation can take several minutes to complete.
-
Delete the Portworx Operator deployment:
kubectl delete deployment -n <px-namespace> portworx-operator
-
Enter the
oc getcommand to display the name of your Portworx CSI storage cluster and specify your namespace:oc get -n portworx storagecluster <storagecluster-name> -
Delete the StorageCluster by running the following command:
oc delete StorageCluster <your-storagecluster-name> -n portworxThis operation can take several minutes to complete.
-
Uninstall Portworx Operator from Operator Hub.