Skip to main content

Delete Token

Deactivates (deletes) a single residential token. This action is irreversible. Only tokens with status "active" can be deleted.
DELETE/resi/token

Authentication

Basic username/password authentication

Request Body

token
Required
Type:string
Description:

The token to deactivate (delete). The token must have status "active" to be deleted.

Code Example

const axios = require('axios');

const url = "https://api.unknownproxies.com/api/v1/resi/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. The token status will be set to "deleted" and it will no longer be able to send traffic through the residential proxy network.

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 Residential Token endpoint

Before deleting a token, you might want to:

For complete details on token status values, see the Residential Token Schema documentation.