Delete all pods in your current namespace, all at once:
kubectl delete --all pods
To delete pods in a different namespace, just add --namespace=<name of namespace>
to that command. To delete pods in all namespaces, add --all-namespaces
.
This also works with other resource types. For example, to delete all deployments in the current namespace:
kubectl delete --all deployments