Hello,
I delete my Players account from Playfab,I use Delete Master Player ( some of them) and I use Delete Title Player some of them. After that I wrote script for login playfab via e-mail. The script say this e-mail is already used. In this problem I need to delete all players from my playfab game.
I saw 0 Player in Development side ( 0/100K) but in the Players section I saw 3 total players but I can not reach via search. How can I delete them ??
Answer by Made Wang · Jun 24 at 09:32 AM
Regarding the delay, please refer to the instructions in this thread: LoginWithFacebook issue: "The account is unavailable, because it is being deleted" - Playfab Community
Please confirm the type of account you delete first. If the title player account is deleted, then only the data of this account under this title is deleted, and the login method of this account is not deleted. You can still use the old login method (such as using email and password) to log in and automatically create a new title player account. If you delete the master player account, it will return "User not found" when you try to log into the original account.
To sum up, since "Email address already exists." is returned, please use this email to do some login tests.
Answer by Made Wang · Jun 22 at 07:29 AM
To delete a player through Scheduled Tasks, the Title player account is deleted, which will only delete the player data under this Title, refer to Account Management - Delete Player - REST API (PlayFab Admin) | Microsoft Docs. This will not delete the player's Master player account, so it returns that the email address already exists and the player can still log in with the original email and password.
If you want to delete the player's Master player account, you need to call DeleteMasterPlayerAccount, you can use Postman or call it on Azure Function. You can also click Delete master player in Game Manager->Players->[Player], and you can click About Master Player to understand the difference between the two accounts. It should be noted that there is a delay in deleting the account, and registering with the same email address before the account is completely deleted will also return that the email address already exists.
In addition, there is some delay in the data of Players page and Segment page, you can get the data through GetPlayersInSegment.
Answer by ASIM SENYUVA · Jun 22 at 12:30 PM
Last night I found PlayfabId from Data Explorer which was wrongly deleted. After that, I activated Admin API from the client-side and call DeleteMasterPlayerAccount for each PlayfabID.
When I call DeleteMasterPlayerAccount it says "User not found" for given PlayfabIDs.
Its look like there is a bug in the system.
Game Manager > [Players] > [Player] > [Delete Master Player] delete the player but I click
Game Manager > [Players] > [Player] > [Delete Title Player] , I can not reach the player and its not delete all data. I called DeleteMasterPlayerAccount one by one but nothing changed
After That I called GetPlayersInSegment and try to compare PIDs
public void GetPlayersInSegment() { var request = new PlayFab.AdminModels.GetPlayersInSegmentRequest { SegmentId = "MYSEGMETID", }; PlayFabAdminAPI.GetPlayersInSegment(request, res => { Debug.Log("success : "); for (int i = 0; i <= res.PlayerProfiles.Count -1 ; i++) { Debug.Log("PID : " + res.PlayerProfiles[i].PlayerId + "\n"); } }, OnError); }
I found 3 PID from here. 1 is active one 2 of the wrongly deleted. After That I called DeleteMasterPlayerAccount one by one but system says "User not found". It looks bug!
Answer by Made Wang · Jun 23 at 07:17 AM
Does wrongly deleted mean that only the title player account was deleted? AccountNotFound usually means that the PlayFabID input is wrong or the account has been deleted. You can try to log in with the original email address and password to determine whether the account is deleted.
In Data Explorer (basic), you can check whether there is an event corresponding to the deleted account. The corresponding event of delete title player account is player_removed_title, and the corresponding event of delete master player account is title_deleted_master_player.
Regarding the data in the segment, even if only the Title player account is deleted, this account will also be deleted from the segment, which means GetPlayersInSegment should not get the player that has been deleted. It should be noted that there is a delay in deleting accounts, and the length of the delay time can be referred to the instructions in this thread.
In addition, in order to avoid some misoperation, you can use Postman to test, refer to Quickstart PlayFab REST API collection for Postman - PlayFab | Microsoft Docs.
If the account still cannot be deleted after the above attempts, please provide your Title ID and the PlayFabID of the account that cannot be deleted.
After 72 hours,
Playfab deleted my players in segments in 2 days. On the Game Manager, I saw 1 player active. it's normal for me. Delete process takes 2 days. But in the code is still the same error.
Game Manager Shows 1 active player at this moment. but I can not register new users with my used email :) I can directly say something wrong or too slow here. Front-end users can not manage easily.
We have 1 player registered.
We can not register another player with deleted account e-mail. It means something not deleted.