kubectl 1.37 · Creating and changing

Delete resources from a manifest

Delete everything defined in a file.

kubectl delete -f deployment.yaml

Caution: Check kubectl config current-context first so you don't delete on the wrong cluster.

Official kubectl 1.37 documentation

More creating and changing commands

All creating and changing commands · kubectl 1.37 cheatsheet

Was this page helpful?