6 Uninstalling Policy Control Function

When you uninstall a Helm chart from your PCF 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 "ocpcf",enter this command:
helm delete --purge ocpcf

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 "ocpcf", enter this command:
kubectl delete namespace ocpcf

Cleaning Up Database

To clean up database, enter this command:
DROP DATABASE IF EXISTS database_name;
where database_name is the database created for this release.