# Delete a pod using the type and name specified in the pod.yaml file. kubectl delete -f pod.yaml # Delete all the pods and services that have the label '<label-key>=<label-value>'. kubectl delete pods,services -l <label-key>=<label-value> # Delete all pods, including uninitialized ones. kubectl delete pods --all
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter