---
title: "Delete preset IP ranges group"
type: reference
method: DELETE
path: /rest-api/preset-ip-ranges/group/delete.do
tag: "Targeting Rules"
---

# Delete preset IP ranges group

`DELETE https://YOUR-NETWORK-DOMAIN/rest-api/preset-ip-ranges/group/delete.do`

Permanently deletes a preset IP ranges group along with all IP range entries belonging to that group. The group must exist or a 404 error is returned. Requires PRESET_DOMAIN_GROUP_MANAGEMENT permission. The action is recorded in the audit log.

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `groupId` | integer | yes | `100` | Unique numeric ID of the preset IP ranges group to delete |

## Responses

- `200` — Success
- `400` — Missing required parameter
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Preset group not found
- `500` — Internal server error

## Example request

```bash
curl --request DELETE \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/preset-ip-ranges/group/delete.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'groupId=100'
```

Source: https://epom.com/ad-server/docs/api/targeting-rules/delete-preset-ip-ranges-group