DEV Community

Maxime Guilbert
Maxime Guilbert

Posted on • Edited on

12 1 1 1 1

K8s forcefully delete resources

Sometimes, when we are working with custom resources, they are stucked in a Terminating phase.

Today, we will see how to resolve this use easily.


Warning

First I need to warn you. Force deleting a custom resource can be risky and generate other issues. So be sure about what you are doing before forcing the deletion.


To force delete a custom resource, follow these steps :

  • Edit the Object : kubectl edit customresource/name
  • Remove finalizer parameter
  • Delete the object : kubectl delete customresource/name

And that's it!

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