6 Uninstalling UDR
This chapter provides information about uninstalling Oracle Communications Cloud Native Core, Unified Data Repository (UDR).
6.1 Uninstalling UDR Using Helm
helm uninstall <helm_release_name_for_ocudr> --namespace <ocudr_namespace>Where,
<helm-release>is a name provided to identify
the Helm deployment. <namespace> is the name
provided to identify the namespace of UDR deployment.helm uninstall ocudr -n ocudr
Important:
As part of UDR uninstallation, its databases are not dropped. If you want to drop the databases, see Removing UDR Database.Note:
Thekubectl commands may
vary depending on the platform deployment. Replace kubectl with Kubernetes
environment-specific command line tool to configure Kubernetes resources through
kube-api server. The instructions provided in this section are as per the Oracle
Communications Cloud Native Environment (OCCNE) version of kube-api server.
Caution:
User, computer and applications, and character encoding settings may cause an issue when copy-pasting commands or any content from PDF. The PDF reader version also affects the copy-pasting functionality. It is recommended to verify the pasted content especially when the hyphens or any special characters are part of the copied content.To verify the UDR uninstallation, run the following command:
kubectl get all -n <release-namespace>In case of successful uninstallation, no UDR resource is displayed in the command output.
If the command output displays the UDR resources or objects, then perform Deleting Kubernetes Namespace.
6.2 Deleting Kubernetes Namespace
This section describes how to delete Kubernetes namespace where UDR is deployed.
kubectl delete namespace <release_namespace>Where,<release_namespace> is the deployment namespace used by the Helm
command.
kubectl delete namespace ocudr6.3 Removing UDR Database
This section describes how to remove database when uninstalling UDR.
Run the following command to remove UDR subscriber and configurations database on single site setup
Note:
- When dropping
<udrdb_name>or<udrconfigdb_name>database, make sure that there are no service or tools like nudr-bulk-import or nudr-odmand-migration running. If the service or tools are running, you must uninstall UDR deployment and UDR tools. - Perform the following steps on one of the sites for per multiple site deployment. The database is removed across all the sites.
- Run the following command to log in to one of the ndb app SQL node
pods.
kubectl exec -it ndbappmysqld-0 -n <dbtier-ns> bashExample:
kubectl exec -it ndbappmysqld-0 -n occne-rs1 bash - Run the following command to log in to the SQL terminal using UDR database user
credentials.
mysql -h127.0.0.1 -u<username> -p<password>Example:
mysql -h 127.0.0.1 -uudruser -pudrpasswd - Run the following commands to drop the configuration and subscriber
databases.
drop database <udrdb_name>; drop database <udrconfigdb_name>;Example:
drop database udrdb; drop database udrconfigdb;