Skip to main content
Version: 25.8

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.

note

The PVCs, backend volumes, and snapshots are not deleted. These resources remain in a stale state.

  1. Use the kubectl get command to display the name of your Portworx CSI storage cluster:

    kubectl get -n <px-namespace> storagecluster <storagecluster-name>
  2. Delete the StorageCluster by running the following command:

    kubectl delete storagecluster <storagecluster-name> -n <px-namespace>

    This operation can take several minutes to complete.

  3. Delete the Portworx Operator deployment:

    kubectl delete deployment -n <px-namespace> portworx-operator