---
title: "Remove advertiser share"
type: reference
method: DELETE
path: /rest-api/advertiserShares/{userId}/{advertiserId}.do
tag: "Shares"
---

# Remove advertiser share

`DELETE https://YOUR-NETWORK-DOMAIN/rest-api/advertiserShares/{userId}/{advertiserId}.do`

Revokes a user's share on an advertiser, as the Shares grid of the console does. The response echoes the userId and advertiserId. Works for a deleted advertiser too, so a share left on one can be cleaned up. Needs the SHARE permission on campaigns at ALL level; at SHARED level the caller's own share on the advertiser must be higher than the one being removed, or the user must be one the caller owns.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `userId` | integer | yes | `5001` | ID of the user whose share is removed |
| `advertiserId` | integer | yes | `1001` | ID of the advertiser the share is on |

## Responses

- `200` — Share removed: {success, userId, advertiserId}
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — Not allowed to remove this share
- `404` — No such user or advertiser, or the user has no share on it

## Example request

```bash
curl --request DELETE \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/advertiserShares/5001/1001.do' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/shares/delete-advertisershares