I need to clear all character inventory and custom data after death. Now i just delete this character and create new, but maybe it will be better to revoke all items and clear data by requests. In case of proper using playfab api and playfab resources. Sorry for my english)
Answer by Sarah Zhang · Jun 23, 2020 at 07:14 AM
The Server API request DeleteCharacterFromUser will purge the inventory items of this character when SaveCharacterInventory isset as false. If you do not need to reuse this character Id or this character’s other info (such as the statistics), DeleteCharacterFromUser and RevokeInventoryItems both can be used to purge the character’s inventory items. Besides, due to RevokeInventoryItems will revoke up to 25 items once. You may need to call this request repeatedly to purge the inventory.
As a summary, DeleteCharacterFromUser is more suitable for temporary roles, RevokeInventoryItems is more suitable for a persistent character. You can use these two APIs according to your needs.