Delete TimesTen Databases
You can uninstall replicated and non-replicated TimesTenClassic objects. This results in the deletion of TimesTen databases associated with the object. Since the Persistent Volume Claims (PVCs) are not automatically deleted, you must manually delete them. The example shows you how to do this.
- Confirm the TimesTenClassic objects that are running in your namespace.
kubectl get ttcThe output is similar to the following:NAME STATE ACTIVE AGE norepsamplehelm AllReplicasReady N/A 24h repsamplehelm Normal repsamplehelm-0 27h - List the releases.
helm listThe output is similar to the following:
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION norepsamplehelm default 5 2025-01-16 15:09:42.959017268 +0000 UTC deployed ttclassic-2211340.1.0 22.1.1.34.0 repsamplehelm default 3 2025-01-16 13:54:33.909336613 +0000 UTC deployed ttclassic-2211340.1.0 22.1.1.34.0 ttoper default 3 2025-01-16 16:11:37.408437395 +0000 UTC deployed ttoperator-2211340.1.0 22.1.1.34.0The
norepsamplehelmandrepsamplehelmreleases exist in your namespace. - Uninstall the release for the replicated TimesTenClassic object.
- Uninstall.
helm uninstall repsamplehelmThe output is the following:release "repsamplehelm" uninstalled - Confirm the TimesTenClassic object no longer exists.
kubectl get ttc repsamplehelmThe output is the following:
Error from server (NotFound): timestenclassics.timesten.oracle.com "repsamplehelm" not found - Confirm the ConfigMap is deleted.
kubectl get configmap repsamplehelmThe output is the following:Error from server (NotFound): configmaps "repsamplehelm" not found - Delete the PVCs.
kubectl get pvcThe output is the following:
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE tt-persistent-repsamplehelm-0 Bound csi-4ef3c13e-ae49-4604-8586-b78343142481 50Gi RWO oci-bv 28h tt-persistent-repsamplehelm-1 Bound csi-6786e82d-0bde-458f-8acd-047308e391a0 50Gi RWO oci-bv 28h ...Delete:
kubectl delete pvc tt-persistent-repsamplehelm-0kubectl delete pvc tt-persistent-repsamplehelm-1
- Uninstall.
- Uninstall the release for the non-replicated TimesTenClassic objects.
- Uninstall.
helm uninstall norepsamplehelmThe output is the following:release "norepsamplehelm" uninstalled - Confirm the TimesTenClassic object no longer exists.
kubectl get ttc norepsamplehelmThe output is the following:
Error from server (NotFound): timestenclassics.timesten.oracle.com "norepsamplehelm" not found - Confirm the ConfigMap is deleted.
kubectl get configmap repsamplehelmThe output is the following:Error from server (NotFound): configmaps "norepsamplehelm" not found - Delete the PVCs.
kubectl get pvcThe output is the following:
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE tt-persistent-norepsamplehelm-0 Bound csi-b5302a0c-f533-418e-a152-a9399ed2be7b 50Gi RWO oci-bv 25h tt-persistent-norepsamplehelm-1 Bound csi-cb4b0e04-16f1-4e87-a952-781ac213ff77 50Gi RWO oci-bv 25h tt-persistent-norepsamplehelm-2 Bound csi-353d4f18-50fe-4bd6-8d57-fe17b973e0be 50Gi RWO oci-bv 25hDelete:
kubectl delete pvc tt-persistent-norepsamplehelm-0kubectl delete pvc tt-persistent-norepsamplehelm-1kubectl delete pvc tt-persistent-norepsamplehelm-2
- Uninstall.
You successfully deleted the TimesTenClassic objects and associated databases from your namespace.