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

# Delete a connector

> Start an async connector delete

Deletion is asynchronous: the call returns `202 Accepted` with an operation handle. Poll it like any other [operation](/api/operations).

By default, Ardent waits for in-progress replication to finish before deleting. Add `?force=true` to skip that wait and abandon un-replicated changes.

Two things block a delete: a deletion lock (`409` — unlock it first) and, without `force`, replication that hasn't finished yet.


## OpenAPI

````yaml openapi.public.json DELETE /v1/connectors/{connector_id}
openapi: 3.1.0
info:
  description: >-
    Public Ardent API. Generated by scripts/export_public_openapi.py — do not
    edit by hand.
  title: Ardent API
  version: v1
servers:
  - url: https://api.tryardent.com
security: []
paths:
  /v1/connectors/{connector_id}:
    delete:
      tags:
        - v1-connectors
      summary: Delete Connector Endpoint
      operationId: delete_connector_endpoint_v1_connectors__connector_id__delete
      parameters:
        - in: path
          name: connector_id
          required: true
          schema:
            title: Connector Id
            type: string
        - in: query
          name: force
          required: false
          schema:
            default: false
            title: Force
            type: boolean
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationHandle'
          description: >-
            Delete accepted (or already in progress). Poll `GET
            /v1/operations/{operation_id}`.
        '403':
          description: No delete permission on this connector.
        '404':
          description: Connector not found (or not visible to the caller).
        '409':
          description: Deletion is locked, or a conflicting delete is active.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
        '503':
          description: Ardent could not start the work — safe to retry.
      security:
        - bearerAuth: []
components:
  schemas:
    OperationHandle:
      properties:
        operation_id:
          description: Operation to poll at `GET /v1/operations/{operation_id}`.
          title: Operation Id
          type: string
        resource_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            ID of the resource being created or acted on (the branch ID for
            branch create).
          title: Resource Id
        status:
          $ref: '#/components/schemas/OperationStatus'
          description: Status at acceptance time.
        type:
          $ref: '#/components/schemas/OperationType'
          description: The kind of work this operation tracks, for example `branch_create`.
      required:
        - operation_id
        - status
        - type
        - resource_id
      title: OperationHandle
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    OperationStatus:
      enum:
        - pending
        - running
        - completed
        - failed
      title: OperationStatus
      type: string
    OperationType:
      enum:
        - connector_engine_setup
        - connector_reset
        - connector_deep_reset
        - connector_discovery
        - connector_delete
        - connector_secret_purge
        - connector_rollout
        - connector_replication_rollback
        - connector_debezium_cutover
        - connector_debezium_shadow_cleanup
        - environment_deploy
        - environment_destroy
        - branch_create
        - branch_delete
      title: OperationType
      type: string
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearerAuth:
      description: >-
        Ardent API key (sk-ard_live_… / sk-ard_test_…) or a dashboard session
        token.
      scheme: bearer
      type: http

````