---
title: "Delete campaign action (deprecated)"
type: reference
method: DELETE
path: /rest-api/campaign/{campaignId}/action/{key}/delete.do
tag: "Actions"
---

# Delete campaign action (deprecated)

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

DEPRECATED: Use DELETE /rest-api/action/{key}/delete instead. Deletes a conversion action by its action key, exactly like the key-only endpoint. The campaignId path variable is accepted for backward compatibility but is not used -- the action is looked up and deleted by key only. The action is marked deleted, as in the console: it disappears from listings and its key answers 404 afterwards. Built-in (shared-by-default) actions cannot be deleted. The deletion is logged to the action log.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `campaignId` | integer | yes | `2001` | Campaign ID (kept for backward compatibility, not used in deletion). |
| `key` | string | yes | `a1b2c3d4e5` | The unique action key string identifying the action to delete. |

## Responses

- `200` — Action deleted successfully (empty 200 response)
- `400` — Bad request — wrong parameter types
- `401` — Authentication error
- `403` — Not enough permissions, or the action is a built-in one
- `404` — No action found with the given action key, or it is already deleted

## Example request

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

Source: https://epom.com/ad-server/docs/api/actions/delete-campaign-action