> ## 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 Branch

> Delete a branch by key.

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


## OpenAPI

````yaml https://raw.githubusercontent.com/flipt-io/flipt/refs/heads/v2/rpc/v2/environments/openapi.yaml DELETE /api/v2/environments/{environmentKey}/branches/{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}/branches/{key}:
    delete:
      tags:
        - EnvironmentsService
      description: Delete a branch environment.
      operationId: deleteBranchEnvironment
      parameters:
        - name: environmentKey
          in: path
          description: The environment identifier, e.g. 'production/branch'.
          required: true
          schema:
            type: string
        - name: key
          in: path
          description: The branch key.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content: {}

````

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