---
title: "Delete kubernetes namespaces"
method: DELETE
path: "/kubernetes/{id}/namespaces"
tags: ["kubernetes"]
---

# Delete kubernetes namespaces

`DELETE /kubernetes/{id}/namespaces`

Delete one or more kubernetes namespaces within the given environment.
**Access policy**: Authenticated user.

## Path parameters

- `id` integer, required

## Request body

- string[]

## Response `200`

Success

## Other responses

- `400` — Invalid request payload, such as missing required fields or fields not meeting validation criteria.
- `403` — Unauthorized access or operation not allowed.
- `500` — Server error occurred while attempting to delete the namespace.

---

[API](https://skmtc.net/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.net/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portainer/portainerce-api/versions/c0b0975cd11b/schema)
