---
title: "Remove an origin"
method: DELETE
path: "/v1/sites/{siteId}/origins/{originId}"
tags: ["Origins"]
---

# Remove an origin

`DELETE /v1/sites/{siteId}/origins/{originId}`

## Request

- Base URL: `https://api.ironfang.com/analytics`
- URL: `https://api.ironfang.com/analytics/v1/sites/{siteId}/origins/{originId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Removes an origin; recorders on it are refused from then on. Needs analytics.sites.write.

## Response `204`

Origin removed

## Other responses

- `401`: No credential, an invalid one, an expired partner integration key, or a delegated token where none is accepted (`unauthorized`, `invalid_api_key`, `api_key_expired`, `delegated_not_allowed`).
- `403`: The credential lacks the permission or scope, names another organisation, or belongs to a partner integration that is not active (`forbidden`, `insufficient_scope`, `integration_inactive`).
- `404`: No such object in this organisation (`not_found`).

---

[API](https://skmtc.dev/ironfang/apis/ironfang-analytics-api.md) · [All operations](https://skmtc.dev/ironfang/apis/ironfang-analytics-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ironfang/apis/ironfang-analytics-api/revisions/08197080c3d7?raw)
