CmdID

CmdID / Commands

kubectl-delete

Delete Kubernetes resources. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Delete a specific pod

kubectl delete [po pod_nameIdentify

Delete a specific deployment

kubectl delete [deploy deployment_nameIdentify

Delete a specific node

kubectl delete [no node_nameIdentify

Delete 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 reference

Delete 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 reference

Delete all nodes

kubectl delete [no --allIdentify
--allDelete all resources, in the namespace of the specified resource types. kubectl reference

Delete resources defined in a YAML manifest

kubectl delete --filename path/to/manifest.yamlIdentify
--filenamecontaining the resource to delete. kubectl reference