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