If you want to delete all your elements of a kind, you can easily do it with the next command:
Exemple to delete all pod in the default namespace
kubectl delete pod --all=true
With the --all=true, you are able to delete all the elements which match the request.
I hope it will help you!
Discussion (1)
I just started with K8s and I’ve been wondering this.. thanks!