> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# leave()

> Leave the current Daily call.

`leave()`

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="green">{"✓"} Custom</Badge>

Leaves the current meeting. If there is no active meeting, this method does nothing.

After calling `leave()`, the call object remains available and can be reused — call `join()` again to start a new session without having to recreate the call object. Call [`destroy()`](/reference/daily-js/instance-methods/destroy) when you are done with the call object entirely.

## Return value

Returns a `Promise<void>` that resolves once the participant has left.

## Example

```javascript theme={null}
document.getElementById('leave-btn').onclick = async () => {
  await call.leave();
  showLobbyUI();
};

call.on('left-meeting', () => {
  // Also fires when ejected or when a fatal error ends the call
  showLobbyUI();
});
```

## See also

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [join()](/reference/daily-js/instance-methods/join)
    * [destroy()](/reference/daily-js/instance-methods/destroy)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [left-meeting](/reference/daily-js/events/lifecycle-events#left-meeting)
    * [error](/reference/daily-js/events/error-events#error)
  </Card>

  <Card title="Guides" icon="book-open" iconType="solid">
    * [Introduction](/docs/daily-js/introduction)
  </Card>
</CardGroup>
