kubectl delete
Jump to navigation
Jump to search
https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_delete/
kubectl delete pod POD_NAMEkubectl delete pod --force --grace-period=0 POD_NAME
kubectl delete job POD_NAME
kubectl delete services hello-minikube
kubectl delete pods --allkubectl delete replicasets --allkubectl delete deployments --all
kubectl delete deployment,svc mysqlkubectl delete pvc mysql-pv-claimkubectl delete pv mysql-pv-volume
kubectl delete crd XXXX
kubectl delete all --all
- Uninstall Istio:
istioctl manifest generate --set profile=demo | kubectl delete -f -
Examples[edit]
kubectl delete CustomResourceDefinition clusterconfigauditreports.aquasecurity.github.io -n aqua kubectl delete CustomResourceDefinition configauditreports.aquasecurity.github.io -n aqua
Related commands[edit]
See also[edit]
kubectl delete [ crd | pod | node | deployments | pvc | service ]kubectl: [cp | config | wait | create|delete|edit | explain |,apply|exec|get|set|drain | uncordon | rolling-update|rollout|logs|run|auth|label | annotate|version|top|diff|debug|replace|describe|port-forward | proxy|scale|rollout|api-resources| expose deployment | expose | patch | attach | get endpoints | ~/.kube/config | kubectl logs --help | kubectl --help, kubectl-convert, kubectl autoscale, kubectl.kubernetes.io--dry-run
Advertising: