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

# Delete inventory source

> Remove an inventory source and disable its backing agent

`DELETE /api/v2/storefront/inventory-sources/{sourceId}`

Deletes an inventory source. The linked agent is disabled before the row is removed.

## Request

<CodeGroup>
  ```bash curl theme={null}
  curl -X DELETE https://api.interchange.io/api/v2/storefront/inventory-sources/retail-network-agent \
    -H "Authorization: Bearer $SCOPE3_API_KEY"
  ```
</CodeGroup>

## Parameters

| Field      | Type          | Required | Notes                                 |
| ---------- | ------------- | -------- | ------------------------------------- |
| `sourceId` | string (path) | Yes      | Storefront-scoped inventory source ID |

## Response

`204 No Content` — no response body on success.

<Warning>
  A source cannot be deleted while its backing agent has non-terminal media buys (`ACTIVE`, `PAUSED`, `PENDING_APPROVAL`, or `INPUT_REQUIRED`). Cancel or terminate those first.
</Warning>

## Errors

* `400 VALIDATION_ERROR` — the backing agent still has non-terminal media buys.
* `401 UNAUTHORIZED` — missing or invalid API key.
* `404 NOT_FOUND` — no source with this `sourceId` on your storefront.

See [Errors](/v2/reference/errors) for the full error contract.

## Related

<CardGroup cols={2}>
  <Card title="Inventory source tasks" href="/v2/storefront/inventory-sources/tasks" icon="list-check">
    All operations
  </Card>

  <Card title="Inventory sources overview" href="/v2/storefront/inventory-sources/overview" icon="plug">
    Concepts and lifecycle
  </Card>

  <Card title="Update inventory source" href="/v2/storefront/inventory-sources/tasks/update-inventory-source" icon="pen">
    Disable instead of delete
  </Card>

  <Card title="List inventory sources" href="/v2/storefront/inventory-sources/tasks/list-inventory-sources" icon="list">
    Every source on the storefront
  </Card>
</CardGroup>
