Delete user token

Deletes all events related to the specified user token from events metrics and analytics. The deletion is asynchronous, and processed within 48 hours. To delete a personalization user profile, see Delete a user profile in the Personalization API.

Usage

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import algoliasearch.api.InsightsClient
import algoliasearch.config.*

val client = InsightsClient(
  appId = "ALGOLIA_APPLICATION_ID",
  apiKey = "ALGOLIA_API_KEY",
  region = Option("ALGOLIA_APPLICATION_REGION")
)

Await.result(
  client.deleteUserToken(
    userToken = "test-user-1"
  ),
  Duration(100, "sec")
)
Did you find this page helpful?