Uninstall¶
Danger
Please make sure to back up all data before uninstalling HwameiStor.
Option 1: Uninstall and Preserve Existing Data¶
If you want to uninstall the system components of HwameiStor but keep the created data volumes to serve data applications, follow these steps:
$ kubectl get cluster.hwameistor.io
NAME             AGE
cluster-sample   21m
$ kubectl delete clusters.hwameistor.io hwameistor-cluster
Ultimately, all HwameiStor system components (Pods) will be deleted. Use the following command to check, and the result should be empty.
Option 2: Complete Uninstallation¶
If you want to uninstall all components of HwameiStor and delete all data volumes and data, follow these steps carefully.
-  Clean up stateful data applications -  Delete the applications. 
-  Delete the Persistent Volume Claims (PVCs). The related PVs, LVs, LVRs, LVGs will be deleted as well. 
 
-  
-  Clean up HwameiStor system components -  Delete the HwameiStor components. 
-  Delete the HwameiStor system namespace. 
-  Delete CRDs, Hooks, and RBAC. 
-  Delete StorageClasses. 
-  Uninstall the HwameiStor Operator. 
 
-  
Finally, you still need to clean up the LVM configuration on each node and use additional system tools (e.g., wipefs) to erase all data on the disks.