Difference between revisions of "Kubectl delete"

From wikieduonline
Jump to navigation Jump to search
 
(32 intermediate revisions by 4 users not shown)
Line 1: Line 1:
* <code>kubectl delete [[pod]] POD_NAME</code>
+
{{lowercase}}
 +
https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_delete/
  
 +
* <code>[[kubectl delete pod]] POD_NAME</code>
 +
* <code>[[kubectl delete pod]] --force --grace-period=0 POD_NAME</code>
 +
 +
* <code>[[kubectl delete services]] hello-minikube</code>
 +
 +
 +
* <code>[[kubectl delete pods -n kube-system -l=app=ebs-csi-controller]]</code>
 +
 +
 +
* <code>[[kubectl delete pods --all]]</code>
 +
* <code>kubectl delete [[replicasets]] --all</code>
 +
* <code>[[kubectl delete deployments]] --all</code>
 +
 +
* <code>kubectl delete deployment,svc mysql</code>
 +
* <code>[[kubectl delete pvc]] mysql-pv-claim</code>
 +
* <code>[[kubectl delete pv]] mysql-pv-volume</code>
 +
 +
* <code>[[kubectl delete namespace]] XXXX</code>
 +
 +
* <code>[[kubectl delete crd]] XXXX</code>
 +
 +
[[kubectl delete all --all]]
 +
 +
* Uninstall [[Istio]]:  <code>[[istioctl manifest generate]] --set profile=demo | [[kubectl delete]] -f -</code>
 +
 +
== Examples ==
 +
[[kubectl delete CustomResourceDefinition]] [[clusterconfigauditreports.aquasecurity.github.io]] -n aqua
 +
kubectl delete CustomResourceDefinition [[configauditreports]].aquasecurity.github.io -n aqua
 +
 +
== Related commands ==
 +
* <code>[[kubectl create]]</code>
 +
* <code>[[kubectl get]]</code>
 +
* <code>[[kubectl apply]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{kubectl delete}}
 
* {{kubectl}}
 
* {{kubectl}}
* {{K8s}}
 
 
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Latest revision as of 09:52, 7 March 2024

Advertising: