Skip to main content

XGameSaveDeleteContainer

Deletes an XGameSaveContainer from cloud storage.

Syntax

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.

Return value

Type: HRESULT Function result.

Remarks

This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
This operation may sometimes run slow, it is somewhat dependent on the size of the data being deleted. This operation is serialized to ensure we always have a consistent representation of the data. This method has an asynchronous version, XGameSaveDeleteContainerAsync.

Requirements

Header: XGameSave.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

Conceptual documentation

See also

XGameSave
XGameSaveDeleteContainerAsync
Debugging Game Saves
Last modified on August 20, 2026