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

# Delete a connection (deprecated)

> Deletes a specific connection. This endpoint is deprecated, use the /connections/{connectionId} endpoint instead.

<Info>
  Requires an API key with the `environment:connections:delete` scope. [Learn more about API key scopes](/reference/backend/http-api/api-keys#scopes).
</Info>


## OpenAPI

````yaml DELETE /connection/{connectionId}
openapi: 3.1.0
info:
  title: Nango API
  description: Nango API specs used to authorize & sync data with external APIs.
  version: 1.0.0
servers:
  - url: https://api.nango.dev
    description: Production server
  - url: http://localhost:3003
    description: Local server
security:
  - bearerAuth: []
externalDocs:
  url: https://nango.dev/docs/reference/backend/http-api/authentication
paths:
  /connection/{connectionId}:
    delete:
      summary: Delete a connection (deprecated)
      description: >-
        Deletes a specific connection. This endpoint is deprecated, use the
        /connections/{connectionId} endpoint instead.
      parameters:
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
          description: The connection ID used to create the connection.
        - name: provider_config_key
          in: query
          required: true
          description: The integration ID used to create the connection (aka Unique Key).
          schema:
            type: string
      responses:
        '200':
          description: Successfully deleted an connection
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
        '404':
          description: Unknown connection
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: The secret key from your Nango environment.

````