Skip to main content
Delete an entity statistic definition. Will delete all statistics on entity profiles and leaderboards.

Syntax

Parameters

entityHandle   PFEntityHandle PFEntityHandle to use for authentication. request   PFStatisticsDeleteStatisticDefinitionRequest* Populated request object. async   XAsyncBlock*
Inout
XAsyncBlock for the async operation.

Return value

Type: HRESULT Result code for this API operation.

Remarks

This API is available on Windows, Linux, and macOS. See also StatisticCreateStatisticDefinitionAsync. Call XAsyncGetStatus to get the status of the operation. If the service call is unsuccessful, the async result will be E_PF_STATISTIC_DEFINITION_MODIFICATION_NOT_ALLOWED_WHILE_LINKED, E_PF_STATISTIC_NOT_FOUND, E_PF_STATISTIC_UPDATE_IN_PROGRESS or any of the global PlayFab Service errors. See doc page “Handling PlayFab Errors” for more details on error handling.

Requirements

Header: PFStatistics.h

See also

PFStatistics members
Last modified on August 31, 2026