Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Le Giang Anh · Sep 06, 2018 at 02:54 AM · Player Datagame managerPlayer Inventory

Best way to reset all players' data?

Hi,

We are going to finish the alpha stage and will need to reset all data of the players before we launch the game. So players will start the game with tutorial phase at level 1.

We haven't found any solution on the documents. Could you please guide us?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Jay Zuo · Sep 06, 2018 at 10:31 AM

One possible solution would be deleting these players' account with https://api.playfab.com/documentation/server/method/DeleteUsers. This will will unlink all accounts and remove all PII information, as well as reset any statistics and leaderboards and clear out any stored custom data for the user.

Another way for your scenario would be creating a new title and migrating all of your Title wide settings/data over to the new title. For more details, please see Best practice for resetting a user/player account.

Comment
Evil Twin

People who like this

1 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Le Giang Anh · Sep 09, 2018 at 10:17 AM 0
Share

So the first approach will eventually delete that user from publisher ID while the second one will not?

avatar image Brendan ♦♦ Le Giang Anh · Sep 09, 2018 at 10:31 AM 0
Share

In the second approach, you'd be creating a new title, so none of the existing title-level player information would exist in it.

Using the Server API to delete all users would clear their title-level data. You could do this via a Scheduled Task that calls a Cloud Script that deletes the currentPlayerId, and yes, it would delete all players (with the time being dependent upon how many player accounts you have). Please note that this would not be a GDPR-compliant delete, however.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    How do I define players who has some set of attributes and can be added to a squad? 1 Answer

    Referral system by code in the game. 1 Answer

    How would I handle a virtual currency online and offline?,Some questions about integration with PlayFab. 1 Answer

    How should I define in the catalog for buying players for a cricket game? 1 Answer

    Repeat Every period of time 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges