Hi there,
I want my players to be able to delete there account within the unity app. I have added a cloud script for that and call it with ExecuteCloudScript().
If executed, all goes well, the call is successful and the player (and the master player) vanishes from the PlayFab-Webinterface.
Now, I log in again with the credentials of the deleted player (or with a not unlinked custom id).
I expected the log in call to fail with an "AccountDeleted" error as specified here. But the log in succeeds and the player is visible in the playfab webinterface again. As if the deletion never happened.
Am I missing something? For me it looks like a bug. The server sets the account active again like if you delete a facebook account and log in again. But it should answer with the "AccountDeleted" error and delete the account some time in the future.
Cloud script:
handlers.DeletePlayer = function(args) { var request = { "PlayFabId" : currentPlayerId }; var deletePlayerResult = server.DeletePlayer(request); log.info("Deleted player with result " + deletePlayerResult); }
I am using the Unity-SDK 2.106.210406