Uninstalling Litmus
Chaos Infrastructure​
To disconnect the Chaos Infrastructure connected to the ChaosCenter, follow these steps -
- Remove the ChaosEngines of the respective Chaos Infrastructure
kubectl delete chaosengine <CHAOSENGINE_NAMEs> --all -<INFRA_NAMESPACE>
note
If ChaosEngines is unable to delete successfully then the Kubernetes finalizers need to be removed manually.
- Login to the ChaosCenter and navigate to the Chaos Infrastructures Page. 
- Click on the three dot menu and select - Disableof the respective Chaos Infrastructure you want to disconnect.
- On the Modal that appears, confirm your selection by clicking - Yesand the selected Chaos Infrastructure would be disconnected from the ChaosCenter.- note- The above disconnect would remove the subscriber component from Chaos Infrastructure and thus removing the connectivity between the Chaos Infrastructure and the ChaosCenter. - If the Chaos Infrastructure is not reachable it would remove only the entry from the database of the ChaosCenter 
Remove the CRs​
To remove the CRs, use the following commands:
- To remove individual CRs
kubectl delete chaosexperiments <CHAOSEXPERIMENTS_NAMEs> -n <INFRA_NAMESPACE>
kubectl delete chaosresults <CHAOSRESULTS_NAMEs> -n <INFRA_NAMESPACE>
kubectl delete workflows <WORKFLOW_NAMEs> -n <INFRA_NAMESPACE>
kubectl delete cronworkflows <CRONWORKFLOW_NAMEs> -n <INFRA_NAMESPACE>
kubectl delete eventtrackerpolicies -n <INFRA_NAMESPACE>
- To remove all CRs
kubectl delete chaosengine,chaosexperiments,chaosresults --all <INFRA_NAMESPACE>
kubectl delete workflows cronworflows --all <INFRA_NAMESPACE>
kubectl delete eventtrackerpolicies -n <INFRA_NAMESPACE>
Delete the Deployments​
To remove the respective deployments of the Chaos Infrastructures you need to manually delete them.
kubectl delete deployment chaos-operator-ce event-tracker workflow-controller chaos-exporter -n <INFRA_NAMESPACE>
Removing Service Account, Role Bindings and Roles​
kubectl delete sa rolebindings role --all -n <NAMESPACE>
Remove the CRDs​
To remove all the CRDs Litmus uses, use the following command:
kubectl delete -f https://raw.githubusercontent.com/litmuschaos/litmus/3.20.0/chaoscenter/manifests/litmus-portal-crds.yml
ChaosCenter​
To remove the Chaos Infrastructure Resources you need to follow the above Chaos Infrastructure Uninstall process
To uninstall the ChaosCenter from the system, follow these steps -
Using Kubectl​
kubectl delete -f ${LITMUS_PORTAL_NAMESPACE}-ns-scoped-litmus-portal-manifest.yml -n ${LITMUS_PORTAL_NAMESPACE}
Using Helm​
helm uninstall litmuschaos  --namespace <NAMESPACE>
kubectl delete ns <NAMESPACE>