API endpoint:
DELETE /api/zone/vips
Sample Response:
The response will output the dedicated residential IPs removed.
The response will output the dedicated residential IPs removed.
["us_209_wa_seattle_0","us_7922_ca_fresno_0"]
Shell
curl -X DELETE "https://api.brightdata.com/zone/vips" -H "Content-Type: application/json" -H "Authorization: Bearer API_TOKEN" -d "{\"zone\":\"ZONE\",\"vips\":[\"vip1\",\"vip2\"]}"
Node.js
#!/usr/bin/env node
require('request-promise')({
method: 'DELETE',
url: 'https://api.brightdata.com/zone/vips',
json: {'zone': 'ZONE','vips':['vip1','vip2']},
headers: {'Authorization': 'Bearer API_TOKEN'},
}).then(function(data){ console.log(data); },
function(err){ console.error(err); });
Java
package example; import org.apache.http.HttpHost; import org.apache.http.client.fluent.*; public class Example { public static void main(String[] args) throws Exception {
String body = "{\"zone\":\"ZONE\",\"vips\":[\"vip1\",\"vip2\"]}"; String res = Executor.newInstance() .addHeader("Authorization", "Bearer API_TOKEN")
.execute(Request.Delete("https://api.brightdata.com/zone/vips"))
.bodyString(body, ContentType.APPLICATION_JSON))
.returnContent().asString();
System.out.println(res) }
}
C#
using System; using System.Net; using System.Net.Http; using System.Net.Http.Headers; public class Program { public static async Task Main() { var client = new HttpClient(); var requestMessage = new HttpRequestMessage { Method = HttpMethod.Delete,
RequestUri = new Uri("https://api.brightdata.com/zone/vips"), Headers = { {"Authorization", "Bearer API_TOKEN"} },
Content = new StringContent(JsonConvert.SerializeObject(new {
zone = "ZONE", vips = [ "vip1", "vip2" ]
}), Encoding.UTF8, "application/json")) }; var response = await client.SendAsync(requestMessage); var responseString = await response.Content.ReadAsStringAsync(); Console.WriteLine(responseString); } }
Python
#!/usr/bin/env python
print('If you get error "ImportError: No module named requests", please install it:\n$ sudo pip install requests');
import requests
data = {'zone': 'ZONE','vips':['vip1','vip2']}
headers = {'Authorization': 'Bearer API_TOKEN'}
r = requests.delete('https://api.brightdata.com/zone/vips', data=data, headers=headers)
print(r.content)