curl -X DELETE "https://api.brightdata.com/zone/ips" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer API\_TOKEN" \
    -d '{"zone":"ZONE","ips":["ip1","ip2"]}'
{
    "ips":[
        "ip1",
        "ip2"
    ]
}

API Endpoint: DELETE /api/zone/ips

zone
string

can be skipped to affect all your zones

ip
string

can be in one of the following formats:

  • Delete a single IP - ip="1.2.1.2"
  • Delete a IP range - ip="1.2.1.2-1.2.1.10"
  • Delete a IP subnet - ip="10.20.30.40/24"
  • Delete a IP mask - ip="10.20.30.40/255.255.255.0"