DEV Community

Lord Jake
Lord Jake

Posted on

How to delete evicted pods in K8

You may have faced situations where many pods are lying in an evicted state dangling around. Instead of clearing it manually. You can use the below script.
kubectl -n default delete pods --field-selector=status.phase=Failed

Top comments (0)