#Deleting player is not deleting entries from statistic linked leaderboards

3 messages · Page 1 of 1 (latest)

mystic vapor
#

Hi, I saw there was a similar post roughly 30 minutes ago, but I thought I'd check if my situation is any different.

For context my game is built with unity using the unity playfab sdk

I have a flow in my game for players to delete their accounts using the DeleteMasterPlayerAccount endpoint. Through Game Manager I can see the player is getting deleted from my title's players, but leaderboards with their entries are not being updated.

I have tried adding the DeletePlayer, DeleteStatistics, and ResetUserStatistics endpoints to remove the data before deleting the player but the issue is still happening.

Learn more about Admin service - Removes a master player account entirely from all titles and deletes all associated data

Learn more about Admin service - Removes a user's player account from a title and deletes all associated data

Learn more about Progression service - Delete statistics on an entity profile. This will remove all rankings from associated leaderboards.

Learn more about Admin service - Completely removes all statistics for the specified user, for the current game

mystic vapor
#

UPDATE: so I was able to work around the issue by calling DeleteStatistics then DeleteMasterPlayerAccount. Somethings to note...

  • When calling DeleteStatistics it only worked when I specified my Entity field in the request with the staticPlayer.PlayFabId for the Id and "master-player-account" for the type. This probably because my statistic entity is master-player-account, thought I'd mention it since leaving the Entity field blank defaults to the logged in player, but I think this only works if you're working with title-player-accounts.
  • I would've preferred to use ResetPlayerStatistics instead of having to call DeleteStatistics with the name of all the stats, but this endpoint didn't seem to be working for me (I'm thinking its because im using stats/leaderboards v2 and this is probably for v1).
polar pond
#

Yeah, the resetUserStatistics are for v1. The deletion flows are being hooked up as we speak and should light up in a few weeks.