Kubernetes Delete

From UVOO Tech Wiki
Jump to navigation Jump to search

https://stackoverflow.com/questions/47128586/how-to-delete-all-resources-from-kubernetes-one-time/47137442

kubectl delete all --all -n {namespace}
Method 2: You can also delete a namespace and re-create it. This will delete everything that belongs to it:

kubectl delete namespace {namespace}
kubectl create namespace {namespace}