> ## 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 the user ID and attributes on logout, and start a new anonymous user

Clears the current user ID, all user attributes, and any claim still waiting on strict verification. On iOS it also clears the SDK's cached entitlements. A new anonymous ID is generated automatically.

## Signature

```dart theme={null}
Future<void> reset()
```

## Parameters

None.

## Usage

```dart theme={null}
Future<void> handleLogout() async {
  await Encore.shared.reset();
  // Navigate to the login screen
}
```

<Tip>
  You don't need to call `configure()` again after `reset()`. The SDK keeps running under the new anonymous ID.
</Tip>

<Note>
  Your registered [purchase controller](./purchase-controller) **survives** `reset()`. It is app-level wiring, not user state, so logging a user out does not require registering it again.
</Note>

## Related

* [identify()](./identify): call it again when the next user logs in
* [setUserAttributes()](./set-user-attributes): attributes start empty after a reset
