> For the complete documentation index, see [llms.txt](https://api.lampix.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.lampix.co/application-development/lampixjs/api/exit.md).

# exit

Switch back to the default app or the value of the `switch-back-to` query param specified via [`switchBackTo()`](https://github.com/lampix-org/lampixjs-core/tree/6b15a76a59ba8ba1b337b8aa71d4a72ca208b4c4/docs/app-dev/lampixjs/api/switchBackTo.md).

(`Promise<void>`): A promise that fulfills without arguments.

## Example

```javascript
import lampix from '@lampix/core';

lampix.exit();
```
