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
- Apply a manifest
- Apply a folder of manifests
- Apply a Kustomize directory
- Create a deployment
- Expose a deployment as a service
- Edit a resource in your editor
All creating and changing commands · kubectl 1.37 cheatsheet