***

title: leave_conference
slug: /reference/python/relay/call/leave-conference
description: Leave an audio conference.
max-toc-depth: 3
---------------------

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

Leave an audio conference.

## **Parameters**

<ParamField path="conference_id" type="str" required={true} toc={true}>
  The conference ID to leave.
</ParamField>

## **Returns**

`dict` -- Server response confirming the leave.

## **Example**

```python {18}
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()

    # Join a conference
    result = await call.join_conference("team-standup", beep="onEnter")

    # Later, leave the conference
    await call.leave_conference(result.get("conference_id"))

client.run()
```