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
import "github.com/algolia/algoliasearch-client-go/v4/algolia/insights"

client, err := insights.NewClient("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY", insights.US)
if err != nil {
  // The client can fail to initialize if you pass an invalid parameter.
  panic(err)
}

err = client.DeleteUserToken(client.NewApiDeleteUserTokenRequest(
  "test-user-1"))
if err != nil {
  // handle the eventual error
  panic(err)
}
Did you find this page helpful?