Delete resources generated by a kustomization.
Section: Kustomize with kubectl
Delete kustomized resources
bash
bash
kubectl delete -k overlays/prodExplanation
Delete resources generated by a kustomization.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Kustomize with kubectl
Apply and prune kustomization
Apply a kustomization and prune matching managed objects.
Generate configmap YAML dry-run
Generate YAML that can be committed into Kustomize overlays.