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

# Remove number from SIP trunk API

> Remove a phone number from a SIP trunk via DELETE /trunk/trunks/{trunk_id}/numbers/{number_id}; inbound calls to it are refused.



## OpenAPI

````yaml DELETE /trunk/trunks/{trunk_id}/numbers/{number_id}
openapi: 3.1.0
info:
  title: Bolna API
  description: >-
    Use and leverage Bolna Voice AI using APIs through HTTP requests from any
    language in your applications and workflows.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.bolna.ai
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: SIP trunks
    description: >-
      Bring-your-own-carrier SIP trunks, their gateways, carrier IPs and
      numbers.
paths:
  /trunk/trunks/{trunk_id}/numbers/{number_id}:
    delete:
      tags:
        - SIP trunks
      description: >-
        Removes a number from a trunk. Inbound calls to it are refused and it
        can no longer be used as a caller ID. The number can be added to a trunk
        again afterwards.
      parameters:
        - in: path
          name: trunk_id
          required: true
          schema:
            type: string
            format: uuid
          description: The trunk's `id`
        - in: path
          name: number_id
          required: true
          schema:
            type: string
            format: uuid
          description: The number's `id`
      responses:
        '200':
          description: Number removed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrunkChildDeleted'
              example:
                id: 5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9
                is_deleted: true
        '404':
          description: >-
            The trunk, or a live number with this ID on it, was not found. For a
            missing number the `message` is `trunk_numbers:<number_id>`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrunkMessageError'
components:
  schemas:
    TrunkChildDeleted:
      type: object
      description: Confirmation that a gateway, carrier IP or number was removed.
      properties:
        id:
          type: string
          format: uuid
          description: The removed item's ID.
        is_deleted:
          type: boolean
          example: true
    TrunkMessageError:
      type: object
      description: >-
        Error body for `400`, `403` and `404` responses from the SIP trunk
        endpoints.
      required:
        - message
      properties:
        message:
          type: string
          description: >-
            Human-readable reason. On a `404` it names the ID that was not
            found.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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