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

# XblTitleManagedStatsDeleteStatsAsync

> XblTitleManagedStatsDeleteStatsAsync

Delete stats for the calling user (any stats not referenced will remain unchanged).

## Syntax

```cpp theme={null}
HRESULT XblTitleManagedStatsDeleteStatsAsync(  
         XblContextHandle xblContextHandle,  
         const char** statisticNames,  
         size_t statisticNamesCount,  
         XAsyncBlock* async  
)  
```

### Parameters

*xblContextHandle*   \_In\_\
Type: [XblContextHandle](https://docs.xbox.com/reference/live/xsapi-c/types_c/handles/xblcontexthandle.md)

XBOX live context for the local user.

*statisticNames*   \_In\_\
Type: char\*\*

A list of names of statistics to delete. If there isn't an existing statistic matching a provided name, no changes will be made for that statistic.

*statisticNamesCount*   \_In\_\
Type: size\_t

Number of items in the statisticNames array.

*async*   \_In\_\
Type: XAsyncBlock\*

Used for async call.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

Note that stat names are case insensitive. To get the result, call [XAsyncGetStatus](https://docs.xbox.com/reference/system/xasync/functions/xasyncgetstatus.md) inside the AsyncBlock callback or after the AsyncBlock is complete. If the call fails for any reason, it is the responsibility of the game to re-submit the request.

## Requirements

**Header:** title\_managed\_statistics\_c.h

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[title\_managed\_statistics\_c](https://docs.xbox.com/reference/live/xsapi-c/title_managed_statistics_c/title_managed_statistics_c_members.md)


## Related topics

- [title_managed_statistics_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/title_managed_statistics_c/title_managed_statistics_c_members.md)
- [XblTitleManagedStatsUpdateStatsAsync](https://docs.xbox.com/reference/live/xsapi-c/title_managed_statistics_c/functions/xbltitlemanagedstatsupdatestatsasync.md)
- [XblTitleManagedStatsWriteAsync](https://docs.xbox.com/reference/live/xsapi-c/title_managed_statistics_c/functions/xbltitlemanagedstatswriteasync.md)
- [XblTitleManagedStatType](https://docs.xbox.com/reference/live/xsapi-c/title_managed_statistics_c/enums/xbltitlemanagedstattype.md)
- [Writing title-managed stats](https://docs.xbox.com/services/xbox-services/player-data/stats-leaderboards/title-managed/how-to/live-writing-tm-stats.md)
