kubectl delete
DestructiveDelete resources
kubectl delete pod <name> -n <ns>
Deletes resources; pods get recreated, but others don't return.
Examples
kubectl delete pod web-xyz -n prodForce a pod to recreate
Syntax
kubectl delete <type> <name> -n <ns> | -f <file>
Before you run it
Deleting deploys/PVCs is irreversible; verify the target.
Related commands
- kubectl applyApply manifests
- kubectl get podsList pods
Check it once more before you run it
Some commands cannot be undone if one flag is wrong. An on-device reference works with no connection. Free to install, no ads.
Get it free on the App Store