6 Uninstalling cnDBTier
Note:
TheOCCNE_NAMESPACE variable in the uninstall procedures must be set
            to the cnDBTier namespace. Before running any command that contains the
                OCCNE_NAMESPACE variable, ensure that you have set this variable to
            the cnDBTier namespace as stated in the following code
                block:export OCCNE_NAMESPACE=<namespace>where, <namespace> is the cnDBTier
                namespace.
                  
This section provides the procedure to uninstall cnDBTier.
- Run the following command to uninstall MySQL
                                        cluster:
$ helm uninstall mysql-cluster -n ${OCCNE_NAMESPACE}Upon successful uninstallation, the following message is displayed:release "mysql-cluster" uninstalled - Run the following command to delete the
                                        secrets:
$ kubectl -n ${OCCNE_NAMESPACE} delete secrets occne-mysqlndb-root-secret occne-replication-secret-db-replication-secret occne-secret-db-monitor-secret cndbtier-ssh-private-key cndbtier-ssh-public-key cndbtier-https-cert-file cndbtier-https-cert-cred cndbtier-mysql-encrypt-key occne-backup-encryption-secret occne-remoteserver-privatekey-secret occne-remote-server-username-secretUpon successful deletion, the following messages are displayed:secret "occne-mysqlndb-root-secret" deleted secret "occne-replication-secret-db-replication-secret" deleted secret "occne-secret-db-monitor-secret" deleted secret "cndbtier-ssh-private-key" deleted secret "cndbtier-ssh-public-key" deleted secret "cndbtier-https-cert-file" deleted secret "cndbtier-https-cert-cred" deleted secret "cndbtier-mysql-encrypt-key" deleted secret "occne-backup-encryption-secret" deleted secret "occne-remoteserver-privatekey-secret" deleted secret "occne-remote-server-username-secret" deleted - Run the following command to delete the PVC
                                        occurrences:
$ kubectl -n ${OCCNE_NAMESPACE} delete pvc --allUpon successful deletion, the following messages are displayed:persistentvolumeclaim "pvc-backup-ndbmtd-ndbmtd-0" deleted persistentvolumeclaim "pvc-backup-ndbmtd-ndbmtd-1" deleted persistentvolumeclaim "pvc-ndbmgmd-ndbmgmd-0" deleted persistentvolumeclaim "pvc-ndbmtd-ndbmtd-0" deleted persistentvolumeclaim "pvc-ndbmtd-ndbmtd-1" deleted persistentvolumeclaim "pvc-ndbmysqld-ndbmysqld-0" deleted persistentvolumeclaim "pvc-ndbmysqld-ndbmysqld-1" deleted persistentvolumeclaim "pvc-ndbappmysqld-ndbappmysqld-0" deleted persistentvolumeclaim "pvc-ndbappmysqld-ndbappmysqld-1" deleted persistentvolumeclaim "pvc-siteb-sitea-replication-svc" deleted - Run the following command to delete the cnDBTier
                                        namespace:
$ kubectl delete ns ${OCCNE_NAMESPACE}Upon successful deletion, the following message is displayed:namespace "occne-cndbtier" deleted