hardkubectl

Delete all deployments, pods, services and other resources within a namespace

command

kubectl delete all --all -n NAMESPACE

also accepted

kubectl delete all --all -n

Command breakdown

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

kubectldeleteall--all-nNAMESPACE
FlagPurpose
--allBoolean flag
-nBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →