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

Want to make this site better? Open a PR or help fund hosting costs