> ## 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()`

✓ Prebuilt✓ Custom

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()`](https://docs.daily.co/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

> [card] Methods
>
> * [join()](https://docs.daily.co/reference/daily-js/instance-methods/join.md)
> * [destroy()](https://docs.daily.co/reference/daily-js/instance-methods/destroy.md)

> [card] Events
>
> * [left-meeting](https://docs.daily.co/reference/daily-js/events/lifecycle-events.md#left-meeting)
> * [error](https://docs.daily.co/reference/daily-js/events/error-events.md#error)

> [card] Guides
>
> * [Introduction](https://docs.daily.co/docs/daily-js/introduction.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.