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

# Excluir um blob do Title Storage

> Exemplo de código C simples que mostra como excluir um blob do Title Storage dos serviços XBOX usando XblTitleStorageDeleteBlobAsync com suporte à correspondência de ETag para salvamentos em nuvem.

Este tópico demonstra como excluir um blob do Title Storage dos serviços XBOX usando o exemplo de código C simples a seguir.

#### C simples

```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();
}
```

## Veja também

[XAsyncBlock](/pt-BR/reference/system/xasync/structs/xasyncblock)

[XAsyncGetStatus](/pt-BR/reference/system/xasync/functions/xasyncgetstatus)

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


## Related topics

- [Código de exemplo do Title Storage](/pt-BR/services/xbox-services/storage/title-storage/how-to/live-title-storage-howto-nav.md)
- [Instruções](/pt-BR/services/xbox-services/storage/title-storage/how-to/index.md)
- [Baixar um blob do Title Storage](/pt-BR/services/xbox-services/storage/title-storage/how-to/live-downloading-title-storage-blob.md)
- [Carregar um blob no Title Storage](/pt-BR/services/xbox-services/storage/title-storage/how-to/live-uploading-title-storage-blob.md)
- [Obter metadados de blobs do Title Storage](/pt-BR/services/xbox-services/storage/title-storage/how-to/live-getting-title-storage-blob-metadata.md)
