> ## 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&, BlobNames&)

> Reference for the XGameSave Provider.Delete(std::string&, BlobNames&) overload that removes one or more named blobs (files) from a specified save container.

Deletes one or more blobs (files) from the specified container.

## Syntax

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

### Parameters

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

The name of the container.

*toDelete*  \_In\_\
Type: BlobNames

A vector that contains the names of the blobs to delete.

### Return value

Type: HRESULT

This method returns **S\_OK** upon success, or an error code otherwise.

## Remarks

This method deletes the blobs named in the **BlobNames** vector.

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

## 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&)](https://docs.xbox.com/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_delete_string.md)
- [Microsoft.Xbox.Wrappers.XGameSave.Provider reference](https://docs.xbox.com/reference/system/Wrappers/classes/provider/xgamesave_wrapper_provider.md)
- [Port Steam Cloud storage to the XBOX GDK](https://docs.xbox.com/build/steam-porting-guide/features/steam-cloud.md)
- [BlobNames](https://docs.xbox.com/reference/system/Wrappers/vectors/blobnames.md)
