---
title: Tip for Forcibly Deleting a Namespace Stuck in Terminating
tags: ["Kubernetes"]
categories: ["Dev", "CaaS", "Kubernetes"]
date: 2023-07-12T07:51:48Z
updated: 2023-07-12T07:51:48Z
---

> ⚠️ This article was automatically translated by OpenAI (gpt-4o).
> It may be edited eventually, but please be aware that it may contain incorrect information at this time.

memo

```
export NS=hogehoge && echo '{"metadata":{"name":"'$NS'"},"spec":{"finalizers":[]}}' | kubectl replace --raw "/api/v1/namespaces/$NS/finalize" -f -
```
