> For the complete documentation index, see [llms.txt](https://documentation.sceenic.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.sceenic.co/watch-together-sdk/sscale-confluence-tutorials/web/sample-application/leave-the-call.md).

# Leave the call

The `disconnect` function is used to disconnect a participant from a session.

```javascript
function disconnect() {
	WTSDK.Session.disconnect();
	document.getElementById("gallery").innerHTML = "";

	document.getElementById('session_container').style.display = 'none';
	document.getElementById('config_dialog').style = `display: flex; flex-direction: column;`;
}
```
