delete all pods code example
Example 1: kubectl delete all pods
kubectl delete --all pods
Example 2: kubectl delete pods
kubectl delete pod podname
Example 3: delete all pods in default namespace
kubectl delete --all pods --namespace default
Example 4: delete all completed pods
kubectl delete pod --field-selector=status.phase==Succeeded