---
title: "Boxever.reset()"
slug: "bx-reset"
abstract: "Describes the reset() function in the Boxever JavaScript Library (Sitecore CDP Stream API)."
---
# Boxever.reset()

The `reset()` function reinitializes the Boxever JavaScript Library. During reinitialization, the function:

- Clears the event queue.
- Deletes the browser ID and the guest reference.
- Reloads the Boxever JavaScript Library. During loading, the Boxever JavaScript Library creates a browser ID and a guest reference.

## Parameters

none

## Return value

undefined

## Example

This example describes how to test that the `reset()` function deletes, then creates a new browser ID.

```javascript
console.log(Boxever.getID());
// "a38b230c-11eb-4cf9-8d5d-274e9f344925​"

```

```javascript
Boxever.reset();

```

```javascript
console.log(Boxever.getID());
// "_a_new_browser_id_"

```