> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Eliminación de un blob del almacenamiento de títulos

> Ejemplo de código C plano que muestra cómo eliminar un blob del almacenamiento de títulos de los servicios XBOX mediante XblTitleStorageDeleteBlobAsync con compatibilidad con la coincidencia de ETag para guardados en la nube.

En este tema se muestra cómo eliminar un blob del almacenamiento de títulos de los servicios XBOX mediante el siguiente ejemplo de código C plano.

#### C plano

```cpp theme={null}
auto asyncBlock = std::make_unique<XAsyncBlock>();
asyncBlock->queue = queue;
asyncBlock->context = nullptr;
asyncBlock->callback = [](XAsyncBlock* asyncBlock)
{
    std::unique_ptr<XAsyncBlock> asyncBlockPtr{ asyncBlock };    // Take over ownership of XAsyncBlock*.
    HRESULT hr = XAsyncGetStatus(asyncBlock, false);
};

HRESULT hr = XblTitleStorageDeleteBlobAsync(
    xboxLiveContext,
    blobMetadata,
    deleteOnlyIfEtagMatches,
    asyncBlock.get()
);

if (SUCCEEDED(hr))
{
    // The call succeeded, so release the std::unique_ptr ownership
    // of XAsyncBlock* because the callback now takes ownership.
    // If the call fails, std::unique_ptr maintains ownership and deletes XAsyncBlock*.
    asyncBlock.release();
}
```

## Consulte también

[XAsyncBlock](/reference/system/xasync/structs/xasyncblock)

[XAsyncGetStatus](/reference/system/xasync/functions/xasyncgetstatus)

[XblTitleStorageDeleteBlobAsync](/reference/live/xsapi-c/title_storage_c/functions/xbltitlestoragedeleteblobasync)


## Related topics

- [Código de ejemplo del almacenamiento de títulos](/es/services/xbox-services/storage/title-storage/how-to/live-title-storage-howto-nav.md)
- [Procedimientos](/es/services/xbox-services/storage/title-storage/how-to/index.md)
- [Descarga de un blob del almacenamiento de títulos](/es/services/xbox-services/storage/title-storage/how-to/live-downloading-title-storage-blob.md)
- [Obtención de los metadatos de un blob del almacenamiento de títulos](/es/services/xbox-services/storage/title-storage/how-to/live-getting-title-storage-blob-metadata.md)
- [Carga de un blob en el almacenamiento de títulos](/es/services/xbox-services/storage/title-storage/how-to/live-uploading-title-storage-blob.md)
