First we need to note that : When you need to delete both PV, PVC then you must start from PVC and then go for PV . I n case mistakenly a PV is deleted first then it goes in terminating state as shown below: Deleted the pv mistakenly Output : See the higlighted one Enlisting the desired PVC for which the PV we have deleted as highlighted Now if we delete that particular PVC so it will also go into terminating state as shown below After deletion it also goes in terminating state. Work Around Edit the particular PVC like as shown kubectl edit pvc < pvc name> Remove that particular line just as highlighted below: Once Edit is done that Terminiating state is no more there and PVC AND PV completely deleted.👏 Feel Free to query : Click Here By: Ibrar Aziz (Cloud Enthusiast) https://ibraraziz-cloud.blogspot.com/ https://www.linkedin.com/in/ibraraziz/
Principal Platform Engineer specializing in designing and delivering enterprise Kubernetes, Red Hat OpenShift, VMware Tanzu, private cloud, hybrid cloud, and AI-enabled cloud-native platforms across telecommunications, healthcare, and enterprise environments. Passionate about building secure, scalable, and highly available platforms through automation, observability, and modern platform engineering practices. Consultancy is available !!