Skip to main content

Delete Token

Deactivates (deletes) a single token. This action is irreversible.
DELETE/isp/token

Authentication

Basic user:pass authentication

Request Body

token
Required
Type:string
Description:

The token to deactivate (delete)

Code Example

const axios = require('axios');

const url = "https://api.unknownproxies.com/api/v1/isp/token";
const headers = {
"Authorization": "Basic dXNlcjpwYXNz",
"Content-Type": "application/json"
};
const data = {
"token": "your-token-here"
};

try {
const response = await axios.delete(url, {
headers,
data
});
console.log(response.data);
} catch (error) {
console.error('Error:', error.response?.data || error.message);
}

Response Example

{
  "message": "success"
}

Important Information

Irreversible Action

Deleting a token is permanent and cannot be undone. Only tokens with status "active" can be deleted. Tokens with status "processing" cannot be deleted - please wait until the token status becomes "active" before attempting to delete it. The token status will be set to "deleted" and the proxies will no longer be accessible.

What Happens When You Delete a Token

  1. The token status is immediately set to "deleted"
  2. The token can no longer authenticate or send traffic
  3. The token data remains in the system for record-keeping purposes
  4. You can still retrieve the deleted token information using the Retrieve Token endpoint

Before Deleting