Skip to main content
Clears all locally stored SDK state and generates a new anonymous user id.

Signature

What gets cleared

  1. User identity: a fresh anonymous UUID is generated and persisted
  2. All user attributes
  3. Queued signals and cached SDK data
reset() revokes nothing. Claims already made, and the real (server-side) entitlements they can lead to, belong to the user id they were made under and are unaffected.

When to call

  • Logout, so the next visitor on this browser doesn’t inherit the previous user’s state.
  • Account switch: reset() first, then identify() the new user.

Example