> ## 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&, std::string&)

> Reference for the XGameSave Provider.Delete(std::string&, std::string&) overload that removes a single named blob (file) from a specified save container.

Deletes the specified blobs (files) from the specified container.

## Syntax

```cpp theme={null}
HRESULT Delete(const std::string& containerName,
               const std::string& blobName);
```

### Parameters

*containerName*   \_In\_\
Type: std::string

The name of the container.

*blobName*  \_In\_\
Type: std::string

The name of the blob 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 one or more blobs from the specified container, call [Delete(std::string&, BlobNames&)](https://docs.xbox.com/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_delete_string_blobnames.md).

To delete a container along with all of its blobs, call [Delete(std::string&)](https://docs.xbox.com/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_delete_string.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&)](https://docs.xbox.com/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_delete_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)
- [PlayFab Release Notes 2020](https://docs.xbox.com/services/playfab/release-notes/2020.md)
