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

# XGameSaveDeleteContainerAsync

> XGameSaveDeleteContainerAsync

Deletes an XGameSaveContainer asynchronously.

## Syntax

```cpp theme={null}
HRESULT XGameSaveDeleteContainerAsync(  
         XGameSaveProviderHandle provider,  
         const char* containerName,  
         XAsyncBlock* async  
)  
```

### Parameters

*provider*   \_In\_\
Type: XGameSaveProviderHandle

Handle to the XGameSaveProvider which contains the container to be deleted.

*containerName*   \_In\_z\_\
Type: char\*

The name of the container to be deleted.

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

AsyncBlock containing the context and function callback for the XGameSaveDeleteContainerAsync call.

### Return value

Type: HRESULT

Function result.

## Remarks

You will need to call [XGameSaveDeleteContainerResult](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesavedeletecontainerresult.md) in the AsyncBlock's function callback to retrieve the results of the **XGameSaveContainer** deletion. This operation is serialized to ensure we always have a consistent representation of the data. There is a synchronous version of this function, [XGameSaveDeleteContainer](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesavedeletecontainer.md).

## Requirements

**Header:** XGameSave.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XGameSave](https://docs.xbox.com/reference/system/xgamesave/xgamesave_members.md)\
[XGameSaveDeleteContainerResult](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesavedeletecontainerresult.md)\
[XGameSaveDeleteContainer](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesavedeletecontainer.md)\
[Debugging Game Saves](https://docs.xbox.com/build/core-features/common/game-save/game-saves-debugging.md)


## Related topics

- [XGameSaveDeleteContainerResult](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesavedeletecontainerresult.md)
- [XGameSaveDeleteContainer](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesavedeletecontainer.md)
- [XGameSave (API contents)](https://docs.xbox.com/reference/system/xgamesave/xgamesave_members.md)
- [XGameSaveSubmitUpdateAsync](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesavesubmitupdateasync.md)
- [Debugging Game Saves](https://docs.xbox.com/build/core-features/common/game-save/game-saves-debugging.md)
