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

# Excluindo 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](https://docs.xbox.com/pt-BR/reference/system/xasync/structs/xasyncblock.md)

[XAsyncGetStatus](https://docs.xbox.com/pt-BR/reference/system/xasync/functions/xasyncgetstatus.md)

[XblTitleStorageDeleteBlobAsync](https://docs.xbox.com/pt-BR/reference/live/xsapi-c/title_storage_c/functions/xbltitlestoragedeleteblobasync.md)


## Related topics

- [Baixando um blob do Title Storage](https://docs.xbox.com/pt-BR/services/xbox-services/storage/title-storage/how-to/live-downloading-title-storage-blob.md)
- [Carregando um blob no Title Storage](https://docs.xbox.com/pt-BR/services/xbox-services/storage/title-storage/how-to/live-uploading-title-storage-blob.md)
- [Obtendo metadados de blobs do Title Storage](https://docs.xbox.com/pt-BR/services/xbox-services/storage/title-storage/how-to/live-getting-title-storage-blob-metadata.md)
- [Código de exemplo do Title Storage](https://docs.xbox.com/pt-BR/services/xbox-services/storage/title-storage/how-to/live-title-storage-howto-nav.md)
- [Visão geral do Title Storage](https://docs.xbox.com/pt-BR/services/xbox-services/storage/title-storage/live-title-storage-overview.md)
