delete all pods with name code example
Example 1: kubectl delete all pods
kubectl delete --all pods
Example 2: delete all pods in default namespace
kubectl delete --all pods --namespace default
kubectl delete --all pods
kubectl delete --all pods --namespace default