Skip to content

Delete CRDs matching name

Why

Sometimes an addon that adds CRD's doesn't uninstall them all

How

MATCH_STRING="crossplane.io"
kubectl get crds -oname | grep "$MATCH_STRING" | xargs kubectl delete
kubectl get crds -oname | grep "crossplane.io" | xargs kubectl delete