Skip to content
Openshift 1 min read

Force Delete a Project (Namespace) in OpenShift

Force Delete a Project (Namespace) in OpenShift

In some situations, a Project in OpenShift may get stuck in the Terminating state, preventing its complete removal. This usually happens due to Finalizers or pending resources within the namespace. If you’ve tried deleting a namespace and it hasn’t been removed, don’t worry—I’ve prepared a complete guide along with a script that automates the process.

The Problem

Normally, deleting a namespace in OpenShift is a simple process:

oc delete namespace <meu-namespace>

However, in some cases, the namespace may remain in the Terminating state indefinitely. This typically occurs because pending resources within the namespace are blocking its removal.

Solution: Forcing Deletion

If the namespace is stuck, we can force its removal using a script I’ve developed, which is available in my repository.

🔗 Force Namespace Deletion in OpenShift

If this content was helpful, consider leaving a ⭐ on the repository!


💡 Who am I?

I'm Gabriel Carmo, passionate about technology (especially Open Source). I have experience with Cloud, Kubernetes, OpenShift, Zabbix, Dynatrace, and much more! Always exploring new technologies and sharing knowledge. 🚀

📬 Let’s connect!

🔗 LinkedIn
🐙 GitHub
🦊 GitLab
🏅 Credly
📧 Contact:
contato@gabrielandre.com.br