---
title: "Delete a Campaign Plan"
method: DELETE
path: "/context/campaign-plans/{slug}"
tags: ["Campaign Plans"]
---

# Delete a Campaign Plan

`DELETE /context/campaign-plans/{slug}`

## Request

- Base URL: `https://api.adcrunch.dev`
- URL: `https://api.adcrunch.dev/context/campaign-plans/{slug}`
- Auth: HTTP bearer

Deletes a Campaign Plan and its Line Items. Send the `base_revision` you read. The slug becomes free again.

AdCrunch **keeps** the record of what those lines already created. Those provider objects are live in an ad account, and the deletion of a planning row does not remove them.

The answer is `409` with `error=revision_mismatch` if the Campaign Plan changed after you read it.

## Path parameters

- `slug` string, required

## Query parameters

- `base_revision` integer, required: The revision last read via GET — guards concurrent edits.

## Response `204`

Deleted, with its Line Items. What those lines already created is **kept**: those provider objects are live in somebody’s ad account and were never ours to withdraw.

## 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 `campaign_plan:write`. `error` is `forbidden`.
- `404`: No Campaign Plan with that slug. `error` is `not_found`.
- `409`: The plan moved since you read it. `error` is `revision_mismatch`. Adding or deleting a Line Item moves an **approved** plan, because it takes the approval away. Re-read the Campaign Plan before you delete it.

---

[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)
