---
title: "Delete a video spec preset for publisher sites"
type: reference
method: POST
path: /rest-api/video-requirements/presets/{presetId}/delete.do
tag: "Sites"
---

# Delete a video spec preset for publisher sites

`POST https://YOUR-NETWORK-DOMAIN/rest-api/video-requirements/presets/{presetId}/delete.do`

Removes a preset from the network's list, a built-in one too. A preset that live sites were filled from is refused with 409, usedBy and siteIds, unless force=true: those sites keep their requirements exactly as they are and are still checked against them, but no longer name the spec they came from. Requires the VIDEO_REQUIREMENT_PRESETS admin permission (Admin → Creatives & tags → Video requirement presets).

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `presetId` | string | yes | `acme-tv` | Preset id |

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `force` | boolean | no | `false` | Delete even when sites were filled from it; they keep their requirements |

## Responses

- `200` — {deleted, sitesKeptRequirements}
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — Insufficient permissions, naming the missing one
- `404` — No preset with this id
- `409` — Sites were filled from the preset and force was not set: {usedBy, siteIds}

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/video-requirements/presets/acme-tv/delete.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'force=false'
```

Source: https://epom.com/ad-server/docs/api/sites/post-video-requirements-presets-delete