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

# Delete a route connection

> Deletes a connection and preserves its referenced team secret.

<Note>
  This endpoint is in beta. The request and response structure may change before it's generally available.
</Note>


## OpenAPI

````yaml delete /v1/routes/connections/{connection_id}
openapi: 3.1.0
info:
  description: REST API for management of Baseten resources
  title: Baseten management API
  version: 1.0.0
servers:
  - url: https://api.baseten.co
security:
  - BearerAuth: []
paths:
  /v1/routes/connections/{connection_id}:
    parameters:
      - $ref: '#/components/parameters/connection_id'
    delete:
      summary: Deletes a connection
      description: Deletes the connection. The team secret it points at is left in place.
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RouteConnectionTombstoneV1'
      x-codeSamples:
        - lang: bash
          source: |
            curl --request DELETE \
            --url https://api.baseten.co/v1/routes/connections/{connection_id} \
            --header "Authorization: Bearer $BASETEN_API_KEY"
        - lang: python
          source: |-
            import requests
            import os
            API_KEY = os.environ.get("BASETEN_API_KEY", "<YOUR_API_KEY>")
            url = "https://api.baseten.co/v1/routes/connections/{connection_id}"

            headers = {"Authorization": f"Bearer {API_KEY}"}

            response = requests.request(
                "DELETE",
                url,
                headers=headers,
                json={}
            )

            print(response.text)
components:
  parameters:
    connection_id:
      schema:
        type: string
      name: connection_id
      in: path
      required: true
  schemas:
    RouteConnectionTombstoneV1:
      properties:
        id:
          description: Stable identifier of the deleted connection.
          title: Id
          type: string
      required:
        - id
      title: RouteConnectionTombstoneV1
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send `Authorization: Bearer <api_key>`. The legacy `Authorization:
        Api-Key <api_key>` scheme is also accepted.

````