Request data deletion with the REST API

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"
     }
}

Note: For more information about managing data privacy, see the privacy overview page.