# clear-coldkey-swap-announcement (/docs/tx/clear-coldkey-swap-announcement)

Withdraws this coldkey's own pending swap announcement so the swap can no
longer be executed — use it if you announced to the wrong key or changed
your mind. Only clearable once the current block reaches the swap's
execute block plus the reannouncement delay — i.e. roughly the
announcement delay (\~5 days) PLUS the reannouncement delay (\~1 day) after
announcing — so it cannot be used to rapidly cycle announcements. Nothing
moves; a fresh `announce_coldkey_swap` can be made afterwards. If the
announcement was made by an attacker, `dispute_coldkey_swap` is the
right call instead.

| Signer    | Pallet          | Wraps                                             |
| --------- | --------------- | ------------------------------------------------- |
| `coldkey` | SubtensorModule | `SubtensorModule.clear_coldkey_swap_announcement` |

## Parameters [#parameters]

This operation takes no parameters.

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 clear-coldkey-swap-announcement --dry-run
btcli tx clear-coldkey-swap-announcement -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.ClearColdkeySwapAnnouncement()

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("clear_coldkey_swap_announcement", {...}, wallet)
```
