Reset API in Kotlin SDK Alpha

Learn about the group API call in Kotlin SDK.

This guide explains how to use the reset API in Kotlin SDK.

Overview

The Kotlin SDK provides a reset API that you can use to clear the user ID and traits.

The SDK also does the following once you call the reset API:

  • Generates a new anonymousId.
  • If session tracking is enabled, clears the current sessionId and generates a new one.

Method definition

The following snippet highlights how to use the reset API:

analytics.reset()

Questions? Contact us by email or on Slack