← Pods505 / 640
hardkubectl

Force-restart all pods in a namespace by deleting them (deployments recreate them)

command

kubectl delete pods --all -n NAMESPACE

also accepted

kubectl delete pods --all

Command breakdown

Part of the Kubernetes CLI (kubectl) — Pods category.

kubectldeletepods--all-nNAMESPACE
FlagPurpose
--allBoolean flag
-nBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →