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)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay