# remove-proxy (/docs/tx/remove-proxy)

The (delegate, proxy\_type, delay) triple must match the original
`add_proxy` exactly — a mismatch fails with NotFound rather than removing
a different delegation. The proxy deposit reserved at add time is returned
to the signer. Check current delegations with `btcli query proxies`.

| Signer    | Pallet | Wraps                |
| --------- | ------ | -------------------- |
| `coldkey` | Proxy  | `Proxy.remove_proxy` |

## Parameters [#parameters]

| Parameter       | Type    | Required | Description                                                 |
| --------------- | ------- | -------- | ----------------------------------------------------------- |
| `delegate_ss58` | string  | yes      | Delegate whose authorization to revoke.                     |
| `proxy_type`    | string  | no       | Type the delegation was granted with (must match exactly).  |
| `delay`         | integer | no       | Delay the delegation was granted with (must match exactly). |

Address parameters (`--hotkey`, `--coldkey`, `--dest`, ...) accept a raw ss58
address, an address-book or proxy-book name, or a local wallet/hotkey name.

## CLI [#cli]

Preview with `--dry-run` (shows fee, effects, and policy result without
submitting), then submit:

```bash
btcli tx remove-proxy \
  --delegate <ss58|name> --dry-run
btcli tx remove-proxy \
  --delegate <ss58|name> -w my_coldkey
```

## Python [#python]

```python
import bittensor as sub
from bittensor.wallet import Wallet

wallet = Wallet(name="my_coldkey", hotkey="my_hotkey")
intent = sub.RemoveProxy(delegate_ss58="5F...")

async with sub.Client("finney") as client:
    plan = await client.plan(intent, wallet)   # fee, effects, policy — no submission
    result = await client.execute(intent, wallet)
    if not result.success:
        print(result.error.code, result.error.remediation)
```

Or build it by op name, as an agent would:

```python
await client.execute_tool("remove_proxy", {...}, wallet)
```
