how to delete all pods in a namespace code example Example: delete all pods in default namespace kubectl delete --all pods --namespace default