question

Andrei Morari avatar image
Andrei Morari asked

How should I handle Deleting Characters?

I'll try to make this simple:

- My players should be able to delete characters.

- The only "DeleteCharacter" request seems to be on the server API.

- It is strongly recommended that we should not use the Server API in a Client app.

So how are users supposed to delete their own characters then?

Characters
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

·
Citrus Yan avatar image
Citrus Yan answered

Hi Andrei,

For now, PlayFab only allows deleting characters on the server API. Therefore you probably need to utilize CloudScript to delete characters, the basic workflow is the following:

  1. Write a function in CloudScript that handles character deletion.
  2. Make ExecuteCloudScript API call with required parameters to delete the characters the player requested.

Yes, it’s highly un-recommended to use server API in a Client app. If you want to able to delete characters from the client using client APIs, you could make a feature request here: https://community.playfab.com/spaces/24/index.html

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.