---
search:
  tags:
    - Line Items
    - DELETE
seo:
  description: >-
    Deletes a Line Item. Send the base_revision you… Reference for the DELETE
    /context/campaign-plans/{slug}/line-items/{lineItemId} endpoint in the
    AdCrunch API.
sidebar:
  label: Delete a Line Item
  badge: DELETE
title: Delete a Line Item
type: openapi-operation
---
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.

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

**Responses**

- `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.
- `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\`.
