Documentation

Support

Analytics

Analytics

Request data deletion through the REST API

Manually request the deletion of player data through the REST API.
Read time 1 minuteLast updated 19 hours ago

While the Unity Analytics SDK provides a mechanism for a player to request data deletion, if you are using the REST API instead you must implement this function yourself. The way to request data deletion for a player is through recording a
ddnaForgetMe
event. Analytics deletes the player's data within seven days after receiving a
ddnaForgetMe
event for them.
For information on how to record events using the REST API, see the record an event with the REST API tutorial. The
ddnaForgetMe
event should be structured like this:
{ "eventName": "ddnaForgetMe", "eventTimestamp": "2020-01-01 12:00:00", "eventUUID": "foo", "eventVersion": 1, "sessionID": "foo", "userID": "foo", "eventParams": { "clientVersion": "foo", "sdkMethod": "foo" }}