Skip to content
Kloudle Logo
Academy academy

How to Force Delete Kubernetes Namespaces

By Akash Mahajan · · 1 min read · intermediate

Introduction

Problem Statement

kubectl get ns secure-middleware

Solution

vi tmp.json

kubectl proxy
curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/NAMESPACE-NAME/finalize

Akash Mahajan Founder & CEO

Akash Mahajan

Founder & CEO

Akash is the founder of Kloudle, a developer-first cloud security scanner. He’s spent 20+ years in cybersecurity and now builds tools that make securing cloud infra simple, fast, and frustration-free.