Hi,
We are going to finish the alpha stage and will need to reset all data of the players before we launch the game. So players will start the game with tutorial phase at level 1.
We haven't found any solution on the documents. Could you please guide us?
Answer by Jay Zuo · Sep 06, 2018 at 10:31 AM
One possible solution would be deleting these players' account with https://api.playfab.com/documentation/server/method/DeleteUsers. This will will unlink all accounts and remove all PII information, as well as reset any statistics and leaderboards and clear out any stored custom data for the user.
Another way for your scenario would be creating a new title and migrating all of your Title wide settings/data over to the new title. For more details, please see Best practice for resetting a user/player account.
So the first approach will eventually delete that user from publisher ID while the second one will not?
In the second approach, you'd be creating a new title, so none of the existing title-level player information would exist in it.
Using the Server API to delete all users would clear their title-level data. You could do this via a Scheduled Task that calls a Cloud Script that deletes the currentPlayerId, and yes, it would delete all players (with the time being dependent upon how many player accounts you have). Please note that this would not be a GDPR-compliant delete, however.