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

# Remove a funder, or delete one environment's saved integration

> With an `environment`, deletes that environment's saved integration. With `remove=true`, removes the funder entirely. Exactly one of the two must be given: full removal is destructive (scrubs credentials and deletes the funder's policies row), so it must be requested explicitly — an absent or mistyped `environment` must never escalate into it.




## OpenAPI

````yaml https://app.herondata.io/swagger delete /api/funder_integrations/{funder_heron_id}/
openapi: 3.0.0
info:
  contact:
    email: support@herondata.io
    name: Support
  title: Heron Data API
  version: '2021-07-19'
servers:
  - description: Production
    url: https://app.herondata.io
security:
  - ApiKeyAuth:
      - key_XXX
externalDocs:
  description: Read Tutorial
  url: https://docs.herondata.io/
paths:
  /api/funder_integrations/{funder_heron_id}/:
    delete:
      summary: Remove a funder, or delete one environment's saved integration
      description: >
        With an `environment`, deletes that environment's saved integration.
        With `remove=true`, removes the funder entirely. Exactly one of the two
        must be given: full removal is destructive (scrubs credentials and
        deletes the funder's policies row), so it must be requested explicitly —
        an absent or mistyped `environment` must never escalate into it.
      parameters:
        - in: path
          name: funder_heron_id
          required: true
          schema:
            type: string
        - in: query
          name: environment
          required: false
          schema:
            enum:
              - staging
              - production
            type: string
        - in: query
          name: remove
          required: false
          schema:
            type: boolean
      responses:
        '204':
          description: Funder removed, or environment integration deleted
        '400':
          description: Neither `environment` nor `remove=true` given, or both given
        '404':
          description: Funder not linked, or no integration configured for this environment
        '409':
          description: Funder cannot be removed due to active API keys
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````