DEV Community

Maxime Guilbert
Maxime Guilbert

Posted on • Updated on

Kubernetes - Delete multiple resources

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)

brooks_houck_7f6eac3fbbb8 profile image
Brooks Houck

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