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

# Delete integration

> Permanently delete an integration and its stored credentials. Blocked with 409 `integration_in_use` when any survey programming target references this integration via `config.integration_id`, unless `force=true` (which unlinks those surveys first — clears delivery keys, keeps platform).



## OpenAPI

````yaml /openapi/program.openapi.json delete /integrations/{integrationId}
openapi: 3.1.0
info:
  title: Questra Program API
  version: 0.0.1
  description: >-
    REST API for the Questra Program product. Browser users authenticate through
    Questra Auth SSO; automation uses workspace-scoped API keys (`Authorization:
    Bearer qpk_live_…`). API keys carry scopes enforced before handlers.
    Outbound webhooks follow Standard Webhooks (at-least-once delivery;
    consumers must be idempotent).
servers:
  - url: /v1
    description: Program API base path
security: []
paths:
  /integrations/{integrationId}:
    delete:
      tags:
        - Integrations
      summary: Delete integration
      description: >-
        Permanently delete an integration and its stored credentials. Blocked
        with 409 `integration_in_use` when any survey programming target
        references this integration via `config.integration_id`, unless
        `force=true` (which unlinks those surveys first — clears delivery keys,
        keeps platform).
      parameters:
        - schema:
            type: string
            minLength: 1
            example: community-decipher
          required: true
          name: integrationId
          in: path
        - schema:
            type: string
            description: >-
              When true, unlink surveys that reference this integration, then
              delete. When false/omitted, return 409 if any survey is linked.
          required: false
          description: >-
            When true, unlink surveys that reference this integration, then
            delete. When false/omitted, return 409 if any survey is linked.
          name: force
          in: query
      responses:
        '204':
          description: Deleted
        '403':
          description: Managed (virtual) integrations cannot be deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '409':
          description: Integration linked to one or more surveys
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
components:
  schemas:
    ErrorBody:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        resource:
          type: string
        slug:
          type: string
        file_id:
          type: string
        endpoint_id:
          type: string
        event_id:
          type: string
        delivery_id:
          type: string
        api_key_id:
          type: string
        integration_id:
          type: string
        audit_id:
          type: string
        status:
          type: string
        details: {}
        question_ids:
          type: array
          items:
            type: string
        survey_ids:
          type: array
          items:
            type: string
        revisions:
          type: array
          items:
            type: number
      required:
        - error

````