question

ignat-nee avatar image
ignat-nee asked

Delete player throught cloudscript

Greetings.
Trying to delete user throught cloudscript, using this api:
Account Management - Delete Player
But it's wont work - return me an error.
But if i'm trying to remove player using Admin Api via postman, it's works fine.
Is server function won't work, or i'm doing something wrong?
My code works like that:

server.DeletePlayer ({ PlayFabId: args.clanId });
Account ManagementCloudScript
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

·
Seth Du avatar image
Seth Du answered

Hi, can you provide the detailed error code? Does the args.clanId return a valid PlayFab ID? You can use debug.log to check.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ignat-nee avatar image ignat-nee commented ·

It's wrote me "This API must be enabled for server access in the Game Manager API Features settings". Thanks a lot, this is defenetly what i was looking for!

1 Like 1 ·

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.