xxxxxxxxxx
kubectl get pod -n studytonight |grepEvicted |awk'{print $1}'|xargskubectl delete pod -n studytonight
xxxxxxxxxx
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
xxxxxxxxxx
kubectl get pods --all-namespaces --field-selector=status.phase=Failed | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs -L1 kubectl delete pod
xxxxxxxxxx
kubectl get pod -n namespace | grep Evicted | awk '{print $1}' | xargs kubectl delete pod -n namespace