question

Ozan Yilmaz avatar image
Ozan Yilmaz asked

How to remove a player's statistics after banning the player?

Hello everyone,

I have some leaderboards whose aggregation methods are 'maximum'. I want to remove the banned players from the leaderboards. Is there a way to do that without removing their accounts?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

Yes, you can call the Admin API ResetUserStatistics to remove all statistics for the specific user. You can call the admin API methods in the administrative tools or the custom server, if you haven’t implemented the custom servers, or you need to use this method in the PlayFab Rules, you can consider calling the Admin APIs on the CloudScript using Azure Functions.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.