DEV Community

loading...

Kubernetes - Delete multiple resources

adaendra profile image Maxime Guilbert Updated on ・1 min read

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)

pic
Editor guide
Collapse
brooks_houck_7f6eac3fbbb8 profile image
Brooks Houck

I just started with K8s and I’ve been wondering this.. thanks!