---
search:
  tags:
    - Assets
    - DELETE
seo:
  description: >-
    Deletes our copy of the bytes and removes the Asset from the library. A…
    Reference for the DELETE /library/assets/{id} endpoint in the AdCrunch API.
sidebar:
  label: Delete an Asset
  badge: DELETE
title: Delete an Asset
type: openapi-operation
---
Deletes our copy of the bytes and removes the Asset from the library. A reservation can be deleted too, before or after its bytes arrive, which is how one is abandoned deliberately rather than left for the daily sweep.

**This does not remove it from any provider.** Once registered, the bytes are in that ad account and are no longer ours to withdraw — `remainingRegistrations` counts the Registrations the Asset still has. Say so to the user; letting them assume otherwise is worse than refusing.

`DELETE /library/assets/{id}`

**Responses**

- `200` — The Asset is gone from AdCrunch. \`remainingRegistrations\` counts the Registrations it still has, and AdCrunch cannot withdraw the bytes a provider already took.
- `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 \`library:write\`. \`error\` is \`forbidden\`.
- `404` — No Asset with that id in this organization, reservation or stored file. A deleted one answers this too, so a second delete answers \`404\`. \`error\` is \`not\_found\`.
- `409` — A Variation of a Creative holds this Asset, and the delete would remove the bytes of that Variation. Remove the Variation, or delete its Creative, first. \`error\` is \`asset\_in\_use\`.

Response example, 200:

```json
{
  "ok": true,
  "remainingRegistrations": 1
}
```
