Sep 20, 2024
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
Copy
1
2
3
4
5
6
7
8
9
10
11
from algoliasearch.insights.client import InsightsClientSync
from json import loads
# In an asynchronous context, you can use InsightsClient instead, which exposes the exact same methods.
client = InsightsClientSync(
"ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY", "ALGOLIA_APPLICATION_REGION"
)
client.delete_user_token(
user_token="test-user-1",
)
Did you find this page helpful?