***

title: leaveConference
slug: /reference/typescript/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="conferenceId" type="string" required={true} toc={true}>
  The conference ID to leave.
</ParamField>

## **Returns**

`Promise<Record<string, unknown>>` -- Server response confirming the leave.

## **Example**

```typescript {16}
import { RelayClient } from '@signalwire/sdk';

const client = new RelayClient({
  project: process.env.SIGNALWIRE_PROJECT_ID!,
  token: process.env.SIGNALWIRE_TOKEN!,
  contexts: ['default']
});

client.onCall(async (call) => {
  await call.answer();

  // Join a conference
  const result = await call.joinConference('team-standup', { beep: 'onEnter' });

  // Later, leave the conference
  await call.leaveConference(result.conference_id as string);
});

await client.run();
```