> ## 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.

# XblTitleManagedStatsDeleteStatsAsync

> 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](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

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](/reference/system/xasync/functions/xasyncgetstatus) 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.14x.GDK.C.lib

## See also

[title\_managed\_statistics\_c](/reference/live/xsapi-c/title_managed_statistics_c/title_managed_statistics_c_members)


## Related topics

- [XblTitleManagedStatsUpdateStatsAsync](/reference/live/xsapi-c/title_managed_statistics_c/functions/xbltitlemanagedstatsupdatestatsasync.md)
- [XblTitleManagedStatsWriteAsync](/reference/live/xsapi-c/title_managed_statistics_c/functions/xbltitlemanagedstatswriteasync.md)
- [XblTitleManagedStatType](/reference/live/xsapi-c/title_managed_statistics_c/enums/xbltitlemanagedstattype.md)
- [Writing title-managed stats](/services/xbox-services/player-data/stats-leaderboards/title-managed/how-to/live-writing-tm-stats.md)
- [XblTitleManagedStatistic](/reference/live/xsapi-c/title_managed_statistics_c/structs/xbltitlemanagedstatistic.md)
