KubernetesCommand
Delete Resources by Label
Type this command
kubectl delete pods,services -l name=myLabelDeletes pods and services carrying a matching label.
The Kubernetes command to delete resources by label is kubectl delete pods,services -l name=myLabel.
kubectl delete pods,services -l name=myLabelkubectl delete pods,services -l name=myLabelDeletes pods and services carrying a matching label.
Run kubectl delete pods,services -l name=myLabel.
Run kubectl delete pods,services -l name=myLabel.
Type it in the terminal or command-line interface used by Kubernetes.
Yes. The command text is the same on both platforms when the tool is installed.