Run the following command, replacing my-namespace
with the name of your namespace to delete.
kubectl get ns my-namespace -o json | jq '.spec.finalizers = []' | kubectl replace --raw "/api/v1/namespaces/my-namespace/finalize" -f -
Solution found on Stack Overflow.
Company Reviews