---
title: "Deletes a whitelisted ip address for a specific agency group"
method: DELETE
path: "/agency-group/{agency_group_id}/ip-whitelist/{ip}"
tags: ["Agency group ip-whitelist"]
---

# Deletes a whitelisted ip address for a specific agency group

`DELETE /agency-group/{agency_group_id}/ip-whitelist/{ip}`

## Request

- Base URL: `http://localhost:3010/v1`
- URL: `http://localhost:3010/v1/agency-group/{agency_group_id}/ip-whitelist/{ip}`
- Auth: HTTP basic

## Response `200`

The deleted agency group ip address

- IpWhitelistResponseDef
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required
  - `resource_type` string, required
  - `resource_id` string, required
  - `ip` string, ipv4, required
  - `description` string, required

## Other responses

- `400`: Validation error on delete
- `401`: Failed to authenticate the user making the request
- `403`: Permission denied error
- `404`: Resource not found
- `default`: Server error occurred

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) - [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/revisions/1f079f6b65f5?raw)
