--- title: "Remove VAST CSI Driver 2.1.x or 2.0.x" slug: "remove-vast-csi-driver-21x-or-20x-2-4" updated: 2026-10-28T02:14:51Z published: 2026-10-28T02:14:51Z canonical: "docs.vastdata.com/remove-vast-csi-driver-21x-or-20x-2-4" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.vastdata.com/llms.txt > Use this file to discover all available pages before exploring further. # Remove VAST CSI Driver 2.1.x or 2.0.x After removal of VAST CSI Driver 2.1.x or 2.0.x, the existing containers will continue to run with the volumes provisioned by the removed VAST CSI Driver. 1. Remove all VAST storage classes: ```plaintext kubectl delete sc vastdata-filesystem ``` 2. Remove the VAST CSI driver: ```plaintext kubectl delete csidriver csi.vastdata.com ``` 3. Remove the VAST namespace: ```plaintext kubectl delete all --all -n vast-csi ``` 4. Remove the VAST ServiceAccounts: ```plaintext kubectl delete sa csi-vast-controller-sa -n vast-csi kubectl delete sa csi-vast-node-sa -n vast-csi ``` 5. Remove the VAST Secret: ```plaintext kubectl delete secret csi-vast-mgmt -n vast-csi ``` 6. Remove the VAST ClusterRole: ```plaintext kubectl delete ClusterRole csi-vast-attacher-role kubectl delete ClusterRole csi-vast-provisioner-role ``` 7. Remove the VAST ClusterRoleBinding: ```plaintext kubectl delete ClusterRoleBinding csi-resizer-role kubectl delete ClusterRoleBinding csi-vast-attacher-binding kubectl delete ClusterRoleBinding csi-vast-provisioner-binding ``` 8. Remove the VAST VolumeSnapshotClass: ```plaintext kubectl delete VolumeSnapshotClass vastdata-snapshot ```