---
title: "Remove a funder, or delete one environment's saved integration"
method: DELETE
path: "/api/funder_integrations/{funder_heron_id}/"
---

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

`DELETE /api/funder_integrations/{funder_heron_id}/`

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.

## Path parameters

- `funder_heron_id` string, required

## Query parameters

- `environment` 'staging' | 'production'
- `remove` boolean

## Response `204`

Funder removed, or environment integration deleted

## Other responses

- `400` — Neither `environment` nor `remove=true` given, or both given
- `404` — Funder not linked, or no integration configured for this environment
- `409` — Funder cannot be removed due to active API keys

---

[API](https://skmtc.net/herondata/apis/heron-data-api.md) · [All operations](https://skmtc.net/herondata/apis/heron-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/herondata/heron-data-api/versions/f2e441edece2/schema)
