Delete all pods in a specified namespace

kubectl delete

  • Delete Kubernetes resources.
    More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#delete>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

kubectl delete pods --all --namespace {{namespace}}

click the source code to copy install kubectl delete on any operating system with command-not-found.com