+ echo "Warning - deleting Kong routes and services for ServiceManager"
+ SERVICEMANAGER_POD=$(kubectl get pods -o custom-columns=NAME:.metadata.name -l app=nonrtric-servicemanager --no-headers -n ${NONRTRIC_NAMESPACE:-nonrtric})
+ if [[ -n $SERVICEMANAGER_POD ]]; then
+ kubectl exec $SERVICEMANAGER_POD -n ${NONRTRIC_NAMESPACE:-nonrtric} -- ./kongclearup
+ else
+ echo "Error - Servicemanager pod not found, didn't delete Kong routes and services for ServiceManager"
+ fi
+ echo "Uninstalling kongstorage"
+ helm delete kongstorage -n "${NONRTRIC_NAMESPACE:-nonrtric}"
+ echo "Uninstalling Kong"
+ helm delete oran-nonrtric -n ${NONRTRIC_NAMESPACE:-nonrtric}
+fi
+
+ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
+
+if [ "$INSTALL_RANPM" = true ];then
+ echo "Running uninstall-ranpm.sh"
+ chmod +x ${ROOT_DIR}/../ranpm/install/uninstall-ranpm.sh
+ ${ROOT_DIR}/../ranpm/install/uninstall-ranpm.sh
+ kubectl delete ns ran
+ echo "uninstall-ranpm.sh completed"