DEV Community

Maxime Guilbert
Maxime Guilbert

Posted on • Updated on

Kubernetes - Force delete pod command

In some case, a pod can take a lot of time before being deleted.

So here is the Kubernetes command to force the deletion of a pod.

kubectl delete pod --grace-period=0 --force --namespace

example

kubectl delete pod nginx-0fec982 --grace-period=0 --force --namespace nginx
Enter fullscreen mode Exit fullscreen mode

Links


I hope it will help you! 🍺

Top comments (0)