---
title: "Delete a Line Item"
method: DELETE
path: "/context/campaign-plans/{slug}/line-items/{lineItemId}"
tags: ["Line Items"]
---

# Delete a Line Item

`DELETE /context/campaign-plans/{slug}/line-items/{lineItemId}`

## Request

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

Deletes a Line Item. Send the `base_revision` you read. If the Campaign Plan was approved, this call puts the Campaign Plan back into draft, because the allocation is no longer the one that a person approved.

AdCrunch **keeps** the record of what the line already created. Those provider objects are live in an ad account, and this call does not remove them.

## Path parameters

- `lineItemId` string, required
- `slug` string, required

## Query parameters

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

## Response `204`

Deleted. An approved plan returns to `draft`, and the Campaign Plan’s own revision moves — so re-read it before your next guarded write against it.

## 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 such plan, or no Line Item with that id on it. `error` is `not_found`.
- `409`: The Line Item moved since you read it. `error` is `revision_mismatch`.

---

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