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

# Remove the tag from a branch

> Remove the tag from a branch, clearing the environment it was deployed to (pre-release for staging, sandbox for internal).



## OpenAPI

````yaml api-reference/agents/openapi.json DELETE /v1/agents/{agentId}/branches/{branchId}/tag
openapi: 3.1.0
info:
  title: PolyAI Agents API
  version: 1.0.11
  description: Manage PolyAI agents, telephony, deployments, and real-time configs.
servers:
  - url: https://api.us.poly.ai
    description: US region
  - url: https://api.eu.poly.ai
    description: EU region
  - url: https://api.uk.poly.ai
    description: UK region
  - url: https://api.studio.poly.ai
    description: Studio region
security:
  - polyApiKey: []
paths:
  /v1/agents/{agentId}/branches/{branchId}/tag:
    parameters:
      - name: agentId
        in: path
        required: true
        schema:
          type: string
      - name: branchId
        in: path
        required: true
        schema:
          type: string
    delete:
      tags:
        - Branches
      summary: Remove the tag from a branch
      description: >-
        Remove the tag from a branch, clearing the environment it was deployed
        to (pre-release for staging, sandbox for internal).
      responses:
        '200':
          description: Tag removed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UntagBranchPublicResponse'
        '404':
          description: >-
            BRANCH_NOT_FOUND: no such branch.
            DEPLOYMENT_SIMPLIFICATION_INACTIVE: the project is not on simplified
            deployment, or main has changes not yet published to live
        '409':
          description: >-
            BRANCH_NOT_TAGGED: the branch holds no tag. BRANCH_NOT_ACTIVE: the
            branch has been merged or deleted
components:
  schemas:
    UntagBranchPublicResponse:
      type: object
      title: UntagBranchPublicResponse
      description: Confirmation that a staging tag was removed from a branch.
      properties:
        branchId:
          type: string
        message:
          type: string
      required:
        - branchId
        - message
      additionalProperties: false
  securitySchemes:
    polyApiKey:
      type: apiKey
      in: header
      name: X-API-KEY

````