> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encorekit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# reset()

> Clear user identification and cached entitlements

Resets the current user session by clearing the user ID and all cached entitlements. Call this when a user logs out to ensure the next user session starts fresh with a new anonymous ID.

## Signature

```kotlin theme={null}
fun reset()
```

## Parameters

This method takes no parameters.

## Usage

### Basic logout flow

```kotlin theme={null}
fun handleLogout() {
    // Clear your app's session data
    authService.logout()

    // Reset Encore to clear user ID and entitlements
    Encore.shared.reset()

    // Navigate to login screen
    navigateToLogin()
}
```

<Tip>
  After calling `reset()`, the SDK automatically generates a new anonymous user ID. You don't need to call `configure()` again.
</Tip>
