We recently deleted all users in a game in development by using the suggestion by Brendan here (Scheduled task with delete user on all users): https://community.playfab.com/comments/41279/view.html
After this, we have started logging in users again to recreate them, but are getting some strange problems.
Is our database or some cache corrupt? How can we fix it?
Another behaviour is that when a user is recreated, it already has the friends it used to have before (with all previous tags), as long as those are recreated. And anyone that used to have a user as friends get it back as soon as its recrerated.
Together with the other issues, it seems the master users arent deleted, but merely the title users. When the title user gets recreated, the old master user properties (such as friends) are brought back.
The friendslist is however filtered on request (and in the backend admin UI) so you dont see all those ghost friends until they are recreated.
I suppose its a feature that old friends are picked up automatically (and shared between titles?).
Still doesnt explain the 0s we get in all lists though...
Answer by SethDu · Aug 09, 2021 at 09:35 AM
Delete player action in scheduled task is to delete the title player account, which will remain data in master player account. There is still profile data that is stored in master player account.
"0 total players" is fine and there is delay on the display. The player list that returned through GetPlayFabIDsFromGenericIDs can be master player accounts that doesn’t have a title player account in this title. Will you try to call DeleteMasterPlayerAccount to delete them if it is required. Please also note that deletion is a queued task and will take few minutes.
I can't delete player data 1 Answer
Snowflake add-on - extremely slow query 2 Answers
Deleted users from Dashboard causing issues 4 Answers
Lost players 2 Answers
NullReferenceException when making a requests regarding user data 1 Answer