6 Uninstalling OCCM

This chapter provides information on how to uninstall OCCM. When you uninstall a Helm chart from the OCCM deployment, it removes only the Kubernetes objects created during the installation.

6.1 Uninstalling OCCM Using Helm

This chapter describes how to uninstall OCCM using Helm.

To uninstall OCCM using Helm 3, run the following command:
helm uninstall <release_name> --namespace <namespace_name>
For example:
helm uninstall occm--namespace occm-ns

Note:

OCCM helm uninstallation does not remove the configmap entry. It is retained to store the state of OCCM configurations. For complete clean up, configmap must be manually deleted. For more information, see OCCM Cleanup

6.2 OCCM Cleanup

To clean up jobs when uninstalling OCCM:
  1. Run the following command to check if any jobs are present after uninstalling OCCM:
    $ kubectl get jobs -n <namespace_name>
    For Example:
    $ kubectl get jobs -n occm-ns
  2. Run the following command to delete any jobs that are present:
    $ kubectl delete jobs --all -n <namespace_name>
    For example:
    $ kubectl delete jobs --all -n occm-ns
  3. Run the following command to delete the configmap created to persist the application data:
    $ kubectl delete configmap <occm configmap name> -n <namespace_name>
    For example:
    $ kubectl delete configmap occm-occm -n occm-ns

    WARNING:

    You can't restore the OCCM configuration data if the OCCM configMap is deleted.