***

title: clear_digit_bindings
slug: /reference/python/relay/call/clear-digit-bindings
description: Clear DTMF digit bindings on a call.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Clear all digit bindings, optionally filtered by realm.

## **Parameters**

<ParamField path="realm" type="Optional[str]" toc={true}>
  If provided, only clear bindings in this realm. If omitted, all bindings
  are cleared.
</ParamField>

## **Returns**

`dict` -- Server response confirming the bindings were cleared.

## **Example**

```python {23}
from signalwire.relay import RelayClient

client = RelayClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
    contexts=["default"],
)

@client.on_call
async def handle_call(call):
    await call.answer()

    # Bind some digit shortcuts
    await call.bind_digit(
        digits="*0",
        bind_method="calling.transfer",
        bind_params={"dest": "operator"},
        realm="shortcuts",
    )

    # Later, remove all shortcut bindings
    result = await call.clear_digit_bindings(realm="shortcuts")
    print(f"Bindings cleared: {result}")

client.run()
```