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

# Delete phone numbers from a project



## OpenAPI

````yaml DELETE /v1/agents/{agentId}/telephony/phone-numbers
openapi: 3.1.0
info:
  title: PolyAI Agents API
  version: 1.0.3
  description: >-
    Build and deploy PolyAI agents programmatically. Create agents, manage
    branches, update behavior rules, configure knowledge bases, provision
    telephony, publish deployments, and update real-time configs.
servers:
  - url: https://api.us.poly.ai
    description: US region
  - url: https://api.uk.poly.ai
    description: UK region
  - url: https://api.eu.poly.ai
    description: EU region
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
    description: Create, list, duplicate, and delete agents.
  - name: Branches
    description: Create isolated branches for parallel development and merge back to main.
  - name: Agent Behavior
    description: >-
      Read and update an agent's behavior rules (system prompt, interaction
      style, edge cases).
  - name: Knowledge Base
    description: Manage knowledge base topics used for retrieval and tool invocation.
  - name: Variants
    description: Manage site-specific variations of an agent using attributes and variants.
  - name: Deployments
    description: Publish drafts, promote across environments, and roll back deployments.
  - name: Connectors
    description: >-
      Manage telephony connectors that bind phone numbers to voice
      infrastructure.
  - name: Phone Numbers
    description: Provision, reassign, and delete phone numbers on an agent's connectors.
  - name: Real-Time Configs
    description: Update runtime values (e.g. opening hours) outside the publish workflow.
paths:
  /v1/agents/{agentId}/telephony/phone-numbers:
    parameters:
      - name: agentId
        in: path
        required: true
        schema:
          type: string
    delete:
      tags:
        - Phone Numbers
      summary: Delete phone numbers from a project
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeletePhoneNumbersBody'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletePhoneNumbersResponse'
        '400':
          description: Validation error
        '401':
          description: Unauthorized – missing or invalid API key
        '403':
          description: Forbidden – insufficient permissions
components:
  schemas:
    DeletePhoneNumbersBody:
      description: >-
        Phone numbers to release in a single call.


        Releases are processed independently; see the response for per-number
        results.
      type: object
      properties:
        phoneNumbers:
          description: List of phone numbers to delete
          minItems: 1
          type: array
          items:
            type: string
      required:
        - phoneNumbers
    DeletePhoneNumbersResponse:
      description: |-
        Per-number results of a batch release — phone numbers that were
        successfully released, plus any that couldn't be and why.
      type: object
      properties:
        deleted:
          description: Successfully deleted phone numbers
          type: array
          items:
            type: string
        errors:
          description: Per-number errors (omitted when empty)
          type: array
          items:
            $ref: '#/components/schemas/DeletePhoneNumberErrorItem'
      required:
        - deleted
    DeletePhoneNumberErrorItem:
      description: An error encountered while deleting a phone number in a batch.
      type: object
      properties:
        phoneNumber:
          type: string
        error:
          type: string
      required:
        - phoneNumber
        - error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````