clear

open fun clear()

Performs a complete reset of the Beacon SDK, clearing all persisted data and state. After calling this method, you must re-initialize Beacon with a Beacon ID before using it again.

What gets cleared:

  • Beacon ID
  • All user data and session information
  • Configuration and overrides
  • Prefilled forms and article suggestions
  • Commands queue

Note: Push notifications will continue to work after clear(). The SDK maintains device registration across Beacon instances, ensuring push notifications work immediately after re-initialization without requiring additional setup.

This is the method you should call when you need to completely remove the Beacon instance, such as switching to a different Beacon ID in different parts of your app, or when implementing a complete teardown/reinstallation of the Beacon feature.

See logout if you just want to clear the session data.