kubectl delete
Delete Kubernetes resources.
kubectl delete pod {pod_name}
- Delete a specific deployment:
kubectl delete deployment {deployment_name}
kubectl delete node {node_name}
- Delete all pods in a specified namespace:
kubectl delete pods --all --namespace {namespace}
- Delete all deployments and services in a specified namespace:
kubectl delete deployments,services --all --namespace {namespace}
kubectl delete nodes --all
- Delete resources defined in a YAML manifest:
kubectl delete --filename {path/to/manifest.yaml}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).