> ## 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 sync variant

> Deletes a sync variant for a specific connection

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


## OpenAPI

````yaml DELETE /sync/{name}/variant/{variant}
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:
  /sync/{name}/variant/{variant}:
    delete:
      summary: Delete sync variant
      description: Deletes a sync variant for a specific connection
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
          description: The name of the sync
        - name: variant
          in: path
          required: true
          schema:
            type: string
          description: >-
            The name of the variant to delete. Cannot be "base" (protected
            name).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - provider_config_key
                - connection_id
              properties:
                provider_config_key:
                  type: string
                  description: The integration ID used when creating the connection
                connection_id:
                  type: string
                  description: The ID of the connection the sync variant belongs to
      responses:
        '200':
          description: Successfully deleted the sync variant
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                properties:
                  success:
                    type: boolean
                    description: Indicates if the deletion was successful
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - invalid_body
                          - invalid_uri_params
                          - invalid_query_params
                          - invalid_variant
                          - unknown_connection
                      message:
                        type: string
                      errors:
                        type: array
                        items:
                          type: object
        '404':
          description: Sync variant not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - not_found
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - failed_sync_variant_deletion
                      message:
                        type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: The secret key from your Nango environment.

````