kubectl-delete
Delete Kubernetes resources. tldr-pages
On several platforms
Several platforms
Delete a specific pod
kubectl delete [po pod_nameIdentifyDelete a specific deployment
kubectl delete [deploy deployment_nameIdentifyDelete a specific node
kubectl delete [no node_nameIdentifyDelete all pods in a specified namespace
kubectl delete [po --all --namespace namespaceIdentify--allDelete all resources, in the namespace of the specified resource types. kubectl reference--namespaceIf present, the namespace scope for this CLI request kubectl referenceDelete all deployments and services in a specified namespace
kubectl delete [deploy,[svc --all --namespace namespaceIdentify--allDelete all resources, in the namespace of the specified resource types. kubectl reference--namespaceIf present, the namespace scope for this CLI request kubectl referenceDelete all nodes
kubectl delete [no --allIdentify--allDelete all resources, in the namespace of the specified resource types. kubectl referenceDelete resources defined in a YAML manifest
kubectl delete --filename path/to/manifest.yamlIdentify--filenamecontaining the resource to delete. kubectl reference