Register and ask your own question!
How to clean up PVCs.
I noticed that simply deleting the cr.yaml, which deletes the statefulset pods is not enough to delete the PVCs associated with it. Doing a manual kubectl delete pvc command is tedius.
I did a describe pvc command with the output:
Notice that this finalizer for pvc-protection is enabled which I assume is the reason why it doesn't get automatically deleted. How can we disable this so that pvc gets deleted along with the pods?