hardkubectl
Delete all deployments, pods, services and other resources within a namespace
command
kubectl delete all --all -n NAMESPACEalso accepted
kubectl delete all --all -ncommand
kubectl delete all --all -n NAMESPACEalso accepted
kubectl delete all --all -nPart of the Kubernetes CLI (kubectl) — Namespaces category.
| Flag | Purpose |
|---|---|
--all | Boolean flag |
-n | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →