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

# Delete phone number

> Deletes a SIP phone number from your organization. If the phone number is linked to agents,
use the force parameter to automatically remove the link before deletion.

## Deletion Modes

**Normal deletion** (force=false):

* Fails if phone number is linked to any agents
* Returns 409 Conflict if agents are using this number

**Force deletion** (force=true):

* Automatically unlinks phone number from all agents
* Updates affected agents to remove the phone number reference
* Completes deletion even if agents were using the number

## Best Practice

Check affected agents before deletion using the `/affected-agents` endpoint to understand the impact.


## OpenAPI

````yaml https://blackbox.dasha.ai/swagger/v1/swagger.json delete /api/v1/sip-phone-numbers/{id}
openapi: 3.0.4
info:
  title: Dasha BlackBox Agent API
  description: API for managing AI agents and calls
  contact:
    name: DashaAI Team
    email: support@dasha.ai
  version: v1
servers:
  - url: https://blackbox.dasha.ai
    description: Dasha BlackBox Agent API
security:
  - ApiKey: []
  - OAuth: []
tags:
  - name: ActivityLogs
  - name: Agents
  - name: AgentTestCases
  - name: CallResults
  - name: Calls
  - name: Chats
  - name: Copilot
  - name: CustomerData
  - name: Mcp
  - name: Media
  - name: Misc
  - name: PronunciationDictionaries
  - name: Providers
  - name: SipAliases
  - name: SipCredentials
  - name: SipPhoneNumbers
  - name: TextChat
  - name: TwilioProvider
  - name: Voice
  - name: WebhookTest
  - name: WebIntegrations
  - name: WebSocket
    description: WebSocket endpoints for real-time communication
paths:
  /api/v1/sip-phone-numbers/{id}:
    delete:
      tags:
        - SipPhoneNumbers
      summary: Delete phone number
      description: >-
        Deletes a SIP phone number from your organization. If the phone number
        is linked to agents,

        use the force parameter to automatically remove the link before
        deletion.
      parameters:
        - name: id
          in: path
          description: Phone number identifier
          required: true
          schema:
            type: string
            format: uuid
        - name: force
          in: query
          description: Force deletion by unlinking from agents
          schema:
            type: boolean
            default: false
      responses:
        '204':
          description: Phone number deleted successfully
        '401':
          description: Authentication failed or API key is missing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Phone number with specified ID does not exist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '409':
          description: Phone number is linked to agents (use force=true to override)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Server error occurred during phone number deletion
components:
  schemas:
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
  securitySchemes:
    ApiKey:
      type: http
      description: API Key Authentication (Bearer {key})
      scheme: Bearer
    OAuth:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: https://auth.dasha.ai/connect/authorize
          scopes:
            platform_api: Platform API

````