> For the complete documentation index, see [llms.txt](https://docs.portainer.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.portainer.io/2.39-lts/user/kubernetes/namespaces/remove.md).

# Remove a namespace

From the menu select **Namespaces**, tick the checkbox next to the namespace then click **Remove**.

<figure><img src="https://content.gitbook.com/content/xdTQRpMuktD2l0URtOJO/blobs/KKm0LGIK4rhe4E2xIwnk/remove-namespace.gif" alt=""><figcaption></figcaption></figure>

When the confirmation message appears, click **Remove**.

<figure><img src="https://content.gitbook.com/content/xdTQRpMuktD2l0URtOJO/blobs/Bi3YD5oEizkjso2Szw80/2.15-k8s-namespaces-remove-confirm.png" alt=""><figcaption></figcaption></figure>

If a namespace is stuck in a terminating state, Portainer will ask if you want to force deletion of that namespace.
