Skip to main content

forcefully delete resources

Lets say you have a CRD resources hanging and not getting deleted

Get the crds

kubectl get crd

Get the CRD

kubectl get YOURCRD NAME

Edit the CR

kubectl edit customresource/YOURCR NAME

Locate the finalizer and empty it

finalizers: []

Then delete again

kubectl delete customresource/YOURCR NAME

Comments