> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flipt.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Namespace

> Delete a namespace by key.

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url http://localhost:8080/api/v2/environments/{environmentKey}/namespaces/{key}
  ```
</RequestExample>


## OpenAPI

````yaml https://raw.githubusercontent.com/flipt-io/flipt/refs/heads/v2/rpc/v2/environments/openapi.yaml DELETE /api/v2/environments/{environmentKey}/namespaces/{key}
openapi: 3.0.3
info:
  title: Management API
  description: Flipt Management REST API
  version: 2.9.0
servers: []
security: []
tags:
  - name: EnvironmentsService
paths:
  /api/v2/environments/{environmentKey}/namespaces/{key}:
    delete:
      tags:
        - EnvironmentsService
      description: Delete a namespace.
      operationId: deleteNamespace
      parameters:
        - name: environmentKey
          in: path
          description: The environment identifier, e.g. 'production'.
          required: true
          schema:
            type: string
        - name: key
          in: path
          description: The namespace key.
          required: true
          schema:
            type: string
        - name: revision
          in: query
          description: The resource revision for optimistic concurrency.
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteNamespaceResponse'
components:
  schemas:
    DeleteNamespaceResponse:
      type: object
      properties:
        revision:
          type: string
          description: The resource revision for optimistic concurrency.
      description: The response message for deleting a namespace.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.