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.

  1. Confirm the TimesTenClassic objects that are running in your namespace.
    kubectl get ttc
    The output is similar to the following:
    NAME              STATE              ACTIVE            AGE
    norepsamplehelm   AllReplicasReady   N/A               24h
    repsamplehelm     Normal             repsamplehelm-0   27h
    
  2. List the releases.
     helm list

    The 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.0

    The norepsamplehelm and repsamplehelm releases exist in your namespace.

  3. Uninstall the release for the replicated TimesTenClassic object.
    1. Uninstall.
      helm uninstall repsamplehelm
      The output is the following:
      release "repsamplehelm" uninstalled
    2. Confirm the TimesTenClassic object no longer exists.
      kubectl get ttc repsamplehelm

      The output is the following:

      Error from server (NotFound): timestenclassics.timesten.oracle.com "repsamplehelm" not found
    3. Confirm the ConfigMap is deleted.
      kubectl get configmap repsamplehelm
      The output is the following:
      Error from server (NotFound): configmaps "repsamplehelm" not found
    4. Delete the PVCs.
      kubectl get pvc

      The 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-0
      kubectl delete pvc tt-persistent-repsamplehelm-1
  4. Uninstall the release for the non-replicated TimesTenClassic objects.
    1. Uninstall.
      helm uninstall norepsamplehelm
      The output is the following:
      release "norepsamplehelm" uninstalled
    2. Confirm the TimesTenClassic object no longer exists.
      kubectl get ttc norepsamplehelm

      The output is the following:

      Error from server (NotFound): timestenclassics.timesten.oracle.com "norepsamplehelm" not found
    3. Confirm the ConfigMap is deleted.
      kubectl get configmap repsamplehelm
      The output is the following:
      Error from server (NotFound): configmaps "norepsamplehelm" not found
    4. Delete the PVCs.
      kubectl get pvc

      The 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         25h

      Delete:

      kubectl delete pvc tt-persistent-norepsamplehelm-0
      kubectl delete pvc tt-persistent-norepsamplehelm-1
      kubectl delete pvc tt-persistent-norepsamplehelm-2
You successfully deleted the TimesTenClassic objects and associated databases from your namespace.