Proxy Sale
  • Introduction
  • Getting Started
  • API Reference
    • Balance
      • Get Balance
      • Add Balance
      • Pay Methods
    • Proxies
      • List Proxies
      • Download Proxies
      • Set Proxy Comments
    • Order
      • Reference List
      • Calculate Order
      • Create Order
    • Renewal
      • Calculate Renewal
      • Create Renewal Order
    • Residential Proxies
      • Package Info
      • Download Geo
      • Get IP Lists
      • Create IP List
      • Rename IP List
      • Delete IP List
      • API-TOOL
  • Users Links
    • FAQ
    • Blog
  • Support
    • support@proxy-sale.com
    • Telegram
Powered by GitBook
On this page
  1. API Reference
  2. Residential Proxies

Delete IP List

DELETE https://proxy-sale.com/personal/api/v1/{apiKey}/resident/list/rename

This endpoint allows you to delete an existing IP list from your residential proxy package. Removing an IP list helps in managing and organizing your proxy resources efficiently by eliminating lists that are no longer needed or relevant to your current proxy configurations.

Headers

Name
Value

Accept

application/json

Content-Type

application/json

Path parameters

Name
Type
Description

apiKey*

string

API key to authorize requests

Query parameters

Name
Type
Description

id*

integer

The unique identifier of the IP list you wish to delete.

Request examples

curl -X DELETE "https://proxy-sale.com/personal/api/v1/YOUR_API_KEY/resident/list/delete?id=12345" \
     -H "Accept: application/json"
<?php
$apiKey = 'YOUR_API_KEY'; // Replace with your actual API key
$listId = 12345; // Replace with your actual list ID

$curl = curl_init();
curl_setopt_array($curl, [
  CURLOPT_URL => "https://proxy-sale.com/personal/api/v1/$apiKey/resident/list/delete?id=$listId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_HTTPHEADER => [
    "Accept: application/json"
  ],
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class DeleteIPListExample {
    public static void main(String[] args) {
        HttpClient client = HttpClient.newHttpClient();
        int listId = 12345; // Replace with your actual list ID
        String apiKey = "YOUR_API_KEY"; // Replace with your actual API key
        HttpRequest request = HttpRequest.newBuilder()
                .uri(URI.create("https://proxy-sale.com/personal/api/v1/" + apiKey + "/resident/list/delete?id=" + listId))
                .header("Accept", "application/json")
                .DELETE()
                .build();

        try {
            HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
            System.out.println(response.body());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Response examples

{
  "status": "success",
  "data": "delete",
  "errors": []
}
{
  "status": "error",
  "data": null,
  "errors": [
    {
      "message": "not-found",
      "code": 404,
      "customData": null
    }
  ]
}
PreviousRename IP ListNextAPI-TOOL

Last updated 1 year ago