Share via


Microsoft.Xbox.Wrappers.XGameSave.Provider.delete(std::string&)

Deletes a container along with all of its blobs (files).

Syntax

HRESULT Delete(const std::string& containerName);

Parameters

containerName   _In_
Type: std::string

The name of the container to delete.

Return value

Type: HRESULT

This method returns S_OK upon success, or an error code otherwise.

Remarks

You must call the Initialize method before you can call any other method from the Provider class.

To delete a single blob from a container, use Delete(std::string&, std::string&).

To delete one or more blobs from a container, use Delete(std::string&, BlobNames&).

Requirements

Header: xgamesavewrappers.hpp

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

Microsoft.Xbox.Wrappers.XGameSave.Provider
XGameSave wrapper members
Game saves simplified wrapper