Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (12.7k points)
Hi, I know how to delete a pod but i need to delete all the pods is there a command to do it ?

1 Answer

0 votes
by (29.5k points)

Hi, there is no particular command to delete all the pods that I know of but you can possibly delete all the pods in a given namespace, this can be done by using the following command 

kubectl delete --all pods --namespace=foo

If you are interested in learning about Kubernetes I would recommend you to take Kubernetes certification training

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...