> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFStatisticsDeleteStatisticsAsync

> Reference for PFStatisticsDeleteStatisticsAsync, a PlayFab Services C API function that deletes entity statistics and leaderboard rankings.

Delete statistics on an entity profile. This will remove all rankings from associated leaderboards.

## Syntax

```cpp theme={null}
HRESULT PFStatisticsDeleteStatisticsAsync(  
    PFEntityHandle entityHandle,  
    const PFStatisticsDeleteStatisticsRequest* request,  
    XAsyncBlock* async  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFStatisticsDeleteStatisticsRequest\*](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsdeletestatisticsrequest)

Populated request object.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on all platforms. See also StatisticUpdateStatisticsAsync. When the asynchronous task is complete, call [PFStatisticsDeleteStatisticsGetResultSize](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsdeletestatisticsgetresultsize) and [PFStatisticsDeleteStatisticsGetResult](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsdeletestatisticsgetresult) to get the result.

## Requirements

**Header:** PFStatistics.h

## See also

[PFStatistics members](/services/playfab/api-references/c/pfstatistics/pfstatistics_members)
