---
title: "Delete campaign"
type: reference
method: POST
path: /rest-api/campaign/{campaignId}/delete.do
tag: "Campaigns"
---

# Delete campaign

`POST https://YOUR-NETWORK-DOMAIN/rest-api/campaign/{campaignId}/delete.do`

Soft-deletes the campaign with the given ID and sends the campaign-deleted notification. The caller must have DELETE permission on the campaign's advertiser. Returns {"success":true} on success, or {"error":"permission_denied","success":false} on insufficient privileges. For 90 days POST /rest-api/deleted-entities/CAMPAIGN/{id}/restore brings it back, links included.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `campaignId` | integer | yes | `2001` | Unique identifier of the campaign to delete |

## Responses

- `200` — Campaign deleted successfully
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — Forbidden — insufficient permissions
- `404` — Not found — resource does not exist

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/campaign/2001/delete.do' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/campaigns/post-campaign-delete