> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tronrental.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove Token Contract

> Remove a TRC-20 contract from your Auto Bandwidth token list

## Remove Token Contract

Removes a contract from your token list. A contract that one of your subscriptions still uses cannot be removed: change that subscription's `token` or `contract`, or delete it, first. Requires the `buy_bandwidth` scope.

### Path parameters

**address** `string` *required*

Address of the contract to remove

### Response

**address** `string`

The removed contract's address

**deleted** `boolean`

Always `true`

### Example

```bash cURL theme={null}
curl -X DELETE https://api.tronrental.com/v1/bandwidth/auto/contracts/TYourTokenContract1234567890abcdef \
  -H "X-API-Key: your_api_key"
```

```python Python theme={null}
import requests

resp = requests.delete(
    "https://api.tronrental.com/v1/bandwidth/auto/contracts/TYourTokenContract1234567890abcdef",
    headers={"X-API-Key": "your_api_key"},
)
print(resp.json())
```

```javascript JavaScript theme={null}
const resp = await fetch(
  "https://api.tronrental.com/v1/bandwidth/auto/contracts/TYourTokenContract1234567890abcdef",
  { method: "DELETE", headers: { "X-API-Key": "your_api_key" } },
);
console.log(await resp.json());
```

```json Response theme={null}
{
  "address": "TYourTokenContract1234567890abcdef",
  "deleted": true
}
```

### Errors

| Status | Code | When |
| - | - | - |
| `400` | `INVALID_ADDRESS` | `address` is not a valid TRON address |
| `403` | `FORBIDDEN` | The API key lacks the `buy_bandwidth` scope |
| `404` | `NOT_FOUND` | This contract is not in your list |
| `409` | `AUTO_BW_CONTRACT_IN_USE` | A subscription is set up for this contract |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.