Skip to main content

Player Deletion

1. Overview

Player Deletion means removing a user's player account from a title region and deleting all associated data. The game can manage user player accounts deletion through a set of backend HTTP APIs provided by PGOS, while also viewing the relevant operation logs on the portal.

2. General Sequence

The following sequence diagram illustrates the typical player account deletion process initiated by the user.

sequenceDiagram participant Game User Game User-->>Account Deletion Service: Initiate a request to delete a player account Account Deletion Service->>PGOS Backend: Mark the player account as DELETING status (Related API: MarkPlayerAsDeleting) Account Deletion Service->>Account Deletion Service: User cooling-off period (e.g., 7 days) countdown starts Game User-->PGOS Backend: User can not LoginPGOS when the account status is DELETING Account Deletion Service->>Account Deletion Service: User cooling-off period countdown ends Account Deletion Service->>PGOS Backend: Actually delete this player's account and its associated data (Related API: ActualDeletePlayer)

When a user changes their mind during the cooling-off period, they can revoke their account deletion request.

NOTE

Since PGOS only provides relevant backend HTTP APIs, the Account Deletion Service needs to be built by the game, for example:

  • If the game simply want to delete test accounts in the Dev/Test title region, you can directly call the ActualDeletePlayer API.

  • If the game wants users to initiate an account deletion from the game client:

    The game can set up a Virtual Server for these client-side calls and access the PGOS relevant backend HTTP API from the Virtual Server.

  • If the game wants users to initiate an account deletion from the website:

    The game can set up the website and access the PGOS relevant backend HTTP API through the website's backend.

3. Backend HTTP API

The following table is the related backend HTTP APIs, you can click the links to view more details.

API NameDescription
MarkPlayerAsDeletingMark the specified player as DELETING status. After invoking this API, the player will be unable to log in to PGOS.
ClearDeletingStatusClear DELETING status of the specified player. After invoking this API, the player will be able to log in to PGOS again.
CheckPlayerDeletionStatusCheck the deletion status of the specified player.
ActualDeletePlayerActually delete the account of the specified player. After invoking this API, the player's data will be completely deleted.

4. View Operation Logs

Log in to the web portal, access your title region, go to Players > Query, search the player you want to view deletion logs.

image-20240320174423729

If the player account is marked as DELETING, then you can check it on the player detail Overview page:

image-20240320175018644

Click the Deletions tab, then you can view all the deletion operation logs of the player:

image-20240320175242093