delete all pods for a service code example
Example 1: kubectl delete all pods
kubectl delete --all pods
Example 2: delete all completed pods
kubectl delete pod --field-selector=status.phase==Succeeded
kubectl delete --all pods
kubectl delete pod --field-selector=status.phase==Succeeded