> ## 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 gateway from SIP trunk API

> Remove a gateway from a SIP trunk via DELETE /trunk/trunks/{trunk_id}/gateways/{gateway_id}; outbound calls stop using it.



## OpenAPI

````yaml DELETE /trunk/trunks/{trunk_id}/gateways/{gateway_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}/gateways/{gateway_id}:
    delete:
      tags:
        - SIP trunks
      description: >-
        Removes a gateway from a trunk. Outbound calls stop using it
        immediately; a trunk with no gateways cannot place outbound calls.
      parameters:
        - in: path
          name: trunk_id
          required: true
          schema:
            type: string
            format: uuid
          description: The trunk's `id`
        - in: path
          name: gateway_id
          required: true
          schema:
            type: string
            format: uuid
          description: The gateway's `id`
      responses:
        '200':
          description: Gateway removed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrunkChildDeleted'
              example:
                id: 8b1d4e2f-0a3c-4d5e-9f60-7182a3b4c5d6
                is_deleted: true
        '404':
          description: >-
            The trunk, or a live gateway with this ID on it, was not found. For
            a missing gateway the `message` is `trunk_gateways:<gateway_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.