--- id: uninstall-litmus title: Uninstalling Litmus sidebar_label: Uninstall Litmus --- --- ## Chaos Infrastructure To disconnect the [Chaos Infrastructure](../getting-started/resources.md#chaosagents) connected to the [ChaosCenter](../getting-started/resources.md#chaoscenter), follow these steps - 1. Remove the ChaosEngines of the respective Chaos Infrastructure ```bash kubectl delete chaosengine --all - ``` :::note If ChaosEngines is unable to delete successfully then the Kubernetes finalizers need to be removed manually. ::: 2. Login to the ChaosCenter and navigate to the Chaos Infrastructures Page. 3. Click on the three dot menu and select `Disable` of the respective Chaos Infrastructure you want to disconnect. 4. On the Modal that appears, confirm your selection by clicking `Yes` and 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 ```bash kubectl delete chaosexperiments -n kubectl delete chaosresults -n kubectl delete workflows -n kubectl delete cronworkflows -n kubectl delete eventtrackerpolicies -n ``` - To remove all CRs ```bash kubectl delete chaosengine,chaosexperiments,chaosresults --all kubectl delete workflows cronworflows --all kubectl delete eventtrackerpolicies -n ``` ### Delete the Deployments To remove the respective deployments of the Chaos Infrastructures you need to manually delete them. ```bash kubectl delete deployment chaos-operator-ce event-tracker workflow-controller chaos-exporter -n ``` ### Removing Service Account, Role Bindings and Roles ```bash kubectl delete sa rolebindings role --all -n ``` --- ## Remove the CRDs To remove all the CRDs Litmus uses, use the following command: ```bash 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 ```bash kubectl delete -f ${LITMUS_PORTAL_NAMESPACE}-ns-scoped-litmus-portal-manifest.yml -n ${LITMUS_PORTAL_NAMESPACE} ``` ### Using Helm ```bash helm uninstall litmuschaos --namespace kubectl delete ns ```