Due to GDPR and other data regulations, we need to implement a data deletion pipeline for specific players.
- Could you direct me to relevant documentation or tutorials for calling an API that deletes a player based on their player ID?
- I noticed there’s an OpenAPI specification, but I’m unsure how to handle the authentication process.
So there are a few ways to handle this, it’s a little situational as it depends on how a game stores data and what they they want to preserve.
The Authentication service has a REST API endpoint and Command Line support for deleting Player Accounts, it’s also possible via the Player Management Dashboard. This will delete information like data used for account linking, Usernames/Passwords, Email Addresses used for Authentication, etc.
e.g. Some developers way want to keep anonymised Player Data because there is a dependancy within a game on that information, so if additional Player Data is stored using Custom Items (Game Data) so it tends to need to be game implementation specific, as in some cases developers will want to anonymise some data rather than purge it all.
If you want to delete stored in another service - like Cloud Save, Leaderboards (which could have metadata you want to purge), Economy, etc - you would need to use their REST APIs for each service to do that. Most also have an interface in the Dashboard, currently only some have Command Line support.
One last thing I should add for anyone looking for how to solve for this sort of use case, we have Triggers on events like signing up or signing in, so you can Cloud Code when that happens to run code perform an action (like setting up a player, granting a reward, etc).
We also intend to add support them for account deletion, for developers looking to provide a way to automate this to ensure it always happens reliably / predictably (regardless of how an account is deleted).
SOLVED
I’m using Python on the Backend, using the Admin WEB API I was able to delete the player’s Cloud Save, thing is that I don’t find how to delete the Player itself using the Admin WEB API.
This is to implement Google Play Store requirements to let the player delete its data, so I setup a web page and do everything on the backend.
Any help appreciated.
SOLVED. I found how to read the docs!
Thanks
1 Like
Glad you found the docs!
For reference for other folks, you can find the Player Account and Cloud Save REST API docs for deleting a player here:
We’ve just been adding support to delete data in Cloud Save to the UGS CLI and that should be out soon too.
To clarify, deleting a Player Account doesn’t auomatically delete player data in Cloud Save, active Leaderboards, Friends, etc. because that tends to need to be game specific (e.g. it’s okay to delete all data in some cases, in others you might want to keep anonymised data because other data is linked to it). For some cases it might make sense to write a Cloud Code function to handle deleting and/or anonymising data so it’s handle consistently, when it comes to automating an account deletion flow.
We are considering if it makes sense to have an option you can pass that would automatically purge all data when deleting an account, or perhaps fire a Trigger on account deletion that you could wire Cloud Function to listen to, but as there are multiple places that data can be stored we are still considering the best way to implement something like that for developers.