Delete TimesTen Databases
If you delete a TimesTenClassic object, Kubernetes automatically deletes all of the Kubernetes objects and the resources it is using, including the StatefulSet, Service, and Pods. However, Kubernetes does not delete the PersistentVolumeClaims that contain the TimesTen databases. After you delete a TimesTenClassic object, you must manually delete the PersistentVolumeClaims (PVCs) associated with the object. After you manually delete the PVCs, Kubernetes recycles PersistentVolumes that are holding the databases. You may be able to control the recycling operation by using a Kubernetes volume retention policy. However, the TimesTen Operator has no control over this process.
The following example deletes PVCs associated with a replicated TimesTenClassic object called sample
.
% kubectl delete pvc tt-persistent-sample-0 persistentvolumeclaim "tt-persistent-sample-0" deleted % kubectl delete pvc tt-persistent-sample-1 persistentvolumeclaim "tt-persistent-sample-1" deleted