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

# Delete(std::string&)

> Reference for the XGameSave wrapper Provider.Delete(std::string&) method, which removes a save container along with every blob (file) it stores.

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

## Syntax

```cpp theme={null}
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](https://docs.xbox.com/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_initialize.md) 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&)](https://docs.xbox.com/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_delete_string_string.md).

To delete one or more blobs from a container, use [Delete(std::string&, BlobNames&)](https://docs.xbox.com/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_delete_string_blobnames.md).

## Requirements

**Header:** xgamesavewrappers.hpp

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

## See also

[Microsoft.Xbox.Wrappers.XGameSave.Provider](https://docs.xbox.com/reference/system/Wrappers/classes/provider/xgamesave_wrapper_provider.md)\
[XGameSave wrapper members](https://docs.xbox.com/reference/system/Wrappers/xgamesave_wrapper_members.md)


## Related topics

- [Delete(std::string&, std::string&)](https://docs.xbox.com/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_delete_string_string.md)
- [Delete(std::string&, BlobNames&)](https://docs.xbox.com/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_delete_string_blobnames.md)
- [Port Steam Cloud storage to the XBOX GDK](https://docs.xbox.com/build/steam-porting-guide/features/steam-cloud.md)
- [Microsoft.Xbox.Wrappers.XGameSave.Provider reference](https://docs.xbox.com/reference/system/Wrappers/classes/provider/xgamesave_wrapper_provider.md)
- [Delete](https://docs.xbox.com/services/playfab/api-references/rest/authentication/authentication/delete.md)
