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

# XGameSaveDeleteContainerAsync

> 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](/reference/system/xgamesave/functions/xgamesavedeletecontainerresult) 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](/reference/system/xgamesave/functions/xgamesavedeletecontainer).

## Requirements

**Header:** XGameSave.h

**Library:** xgameruntime.lib

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

## See also

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


## Related topics

- [XGameSaveDeleteContainerResult](/reference/system/xgamesave/functions/xgamesavedeletecontainerresult.md)
- [XGameSaveDeleteContainer](/reference/system/xgamesave/functions/xgamesavedeletecontainer.md)
- [XGameSave](/reference/system/xgamesave/xgamesave_members.md)
- [XGameSaveSubmitUpdateAsync](/reference/system/xgamesave/functions/xgamesavesubmitupdateasync.md)
- [Game Saves debugging](/build/core-features/common/game-save/game-saves-debugging.md)
