***

title: unreceive
slug: /reference/python/relay/client/unreceive
description: Unsubscribe from inbound event contexts.
max-toc-depth: 3
---------------------

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

[receive]: /docs/server-sdks/reference/python/relay/client/receive

[on-call]: /docs/server-sdks/reference/python/relay/client

Unsubscribe from contexts for inbound call and message events. Sends a
`signalwire.unreceive` request to stop receiving events on the specified
contexts. This is the inverse of
[`receive()`][receive].

After unsubscribing, inbound calls routed to those contexts will no longer
trigger the [`@on_call`][on-call] handler
on this client.

## **Parameters**

<ParamField path="contexts" type="list[str]" required={true} toc={true}>
  List of context names to unsubscribe from. If the list is empty, the method
  returns immediately without sending a request.
</ParamField>

## **Returns**

`None`

## **Example**

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

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

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

    # Dynamically unsubscribe from "billing" after the first call
    await client.unreceive(["billing"])
    print("Unsubscribed from billing context")

    await call.hangup()

client.run()
```