5 Uninstalling Cloud Native Core Policy (CNC Policy)
When you uninstall a Helm chart from your Cloud Native Core Policy (CNC Policy) deployment, it removes only the Kubernetes objects that it created during installation.
To uninstall, enter this command:
helm delete release_name
where release_name is the release
name used by helm command.
Helm keeps a record of its releases, so you can still re-activate the release after you uninstall it.
To completely remove the release from the cluster, add the --purge option to the
command:
helm delete --purge release_name
For example, to completely remove a release named "occnp",enter this command:
helm delete --purge occnp
Deleting Kubernetes Namespace
To delete kubernetes namespace, enter this command:
kubectl delete namespace release_namespace
where
release_namespace is the
deployment namespace used by helm command.
For example, to delete a kubernetes namespace named "occnp", enter this command:
kubectl delete namespace occnp
Cleaning Up Database
To clean up database for the different
microservices:
DROP DATABASE IF EXISTS occnp_audit_service;
DROP DATABASE IF EXISTS occnp_config_server;
DROP DATABASE IF EXISTS occnp_pcf_am;
DROP DATABASE IF EXISTS occnp_pcf_sm;
DROP DATABASE IF EXISTS occnp_pcf_user;
DROP DATABASE IF EXISTS occnp_pcrf_core;
DROP DATABASE IF EXISTS occnp_release;
DROP DATABASE IF EXISTS occnp_binding;