question

Chris Williams avatar image
Chris Williams asked

DeleteMasterPlayerAccount is no longer a function?

Hello, when trying to run the DeleteMasterPlayerAccount function from CloudScript I get the following message. Should I be accessing this function in a different way?

"StackTrace": "TypeError: server.DeleteMasterPlayerAccount is not a function

Here is the function in the CloudScript:

handlers.deletePlayer = function(){
  var request = {
  "PlayFabId" : currentPlayerId
  };
  var deletePlayerResult = server.DeleteMasterPlayerAccount(request);
  log.info("Deleted player with result " + deletePlayerResult);
  return thePlayer;
}
Account Management
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

·
Gosen Gao avatar image
Gosen Gao answered

DeleteMasterPlayerAccount is an Admin API, which cannot be called in the Cloud Script(Legacy). If you want to use this API, you can implement an Azure Function to call it.

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.