DEV Community

Maxime Guilbert
Maxime Guilbert

Posted on • Edited on

2 1

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)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up