---
title: "Detach an advertiser"
method: DELETE
path: "/context/brands/{slug}/advertisers/{advertiserId}"
tags: ["Brands"]
---

# Detach an advertiser

`DELETE /context/brands/{slug}/advertisers/{advertiserId}`

## Request

- Base URL: `https://api.adcrunch.dev`
- URL: `https://api.adcrunch.dev/context/brands/{slug}/advertisers/{advertiserId}`
- Auth: HTTP bearer

Detaches an advertiser from a Brand. This brand context stops applying to that advertiser, so an agent working on it no longer reads this Brand. Nothing else changes: the advertiser stays connected to your organization, the Brand keeps every section, and a Campaign Plan that names the advertiser keeps naming it. AdCrunch resolves the provider from the advertiser, as the attach does, so the ownership check runs here too.

## Path parameters

- `advertiserId` string, required
- `slug` string, required

## Response `204`

Detached. Unlike everything else here the link is **hard-deleted**: it has no content to preserve, and a tombstone would permanently occupy the only key that pair could use.

## Other responses

- `400`: The request does not match the schema of this operation: a field is missing or has the wrong type, or the body is not valid JSON. `error` is `invalid_request`, and `issues` names each field. Nothing was changed.
- `401`: No API key, or one that does not resolve. See the security scheme. `error` is `unauthorized`.
- `402`: The organization has no active subscription. An owner subscribes at `paywallUrl`. `error` is `organization_unentitled`.
- `403`: The caller does not hold `brand:write`. `error` is `forbidden`.
- `404`: `error` tells the two apart. `not_found`: no Brand with that slug. `not_attached`: the Brand exists and that advertiser was never attached to it.
- `422`: That advertiser is not connected to this organization. `error` is `advertiser_not_owned`.

---

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