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

# XtfRemoveTitleOSFromCacheByVersion

> XtfRemoveTitleOSFromCacheByVersion

# XtfRemoveTitleOSFromCacheByVersion

Remove o Game OS correspondente à [FourPartVersion](/pt-BR/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s) especificada do cache no console.

<a id="syntaxSection" />

## Sintaxe

```cpp theme={null}
HRESULT XtfRemoveTitleOSFromCacheByVersion(
         PCWSTR address,
         FourPartVersion version
)  
```

<a id="parametersSection" />

### Parâmetros

*address*<br />Tipo: PCWSTR

\[in] O endereço do console.

*version*<br />Tipo: [FourPartVersion](/pt-BR/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s)

\[in] O número de versão de quatro partes do Game OS a ser removido.

<a id="retvalSection" />

### Valor retornado

Tipo: HRESULT

Retorna `S_OK` se for bem-sucedido; caso contrário, retorna um código de erro HRESULT.

<a id="remarksSection" />

## Comentários

Use essa função para gerenciar arquivos provisionados do Game OS removendo o Game OS correspondente à `FourPartVersion` especificada do cache no console. Você pode usar a função [XtfGetCachedTitleOSVersions](/pt-BR/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m) para obter a `FourPartVersion` de cada Game OS armazenado em cache no console ou a função [XtfGetTitleOSFourPartVersion](/pt-BR/reference/tools/xtf/xtfapi/functions/xtfgettitleosfourpartversion-xtfapi-xbox-windows-m) para obter a `FourPartVersion` do Game OS do título em execução no momento. Se você tentar remover um Game OS sinalizado como sistema operacional de fallback, ocorrerá um erro.

Se você não tiver uma [FourPartVersion](/pt-BR/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s) para o Game OS que deseja remover, use a função [XtfRemoveTitleOSFromCache](/pt-BR/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcache-xtfapi-xbox-windows-m) para remover um Game OS especificando um identificador diferente, como o caminho completo e o nome do arquivo GameOs.vxd do Game OS a ser removido.

Você também pode adicionar um Game OS ao cache no console chamando a função [XtfCacheTitleOS](/pt-BR/reference/tools/xtf/xtfapi/functions/xtfcachetitleos-xtfapi-xbox-windows-m). Para obter mais informações sobre como gerenciar arquivos provisionados do Game OS, confira [Gerenciamento de aplicativos (xbapp.exe) (tópico sob NDA)](/pt-BR/tools/tools-console/commandlinetools/xbapp) e [Provisionamentoamento (xbprovision.exe) (tópico sob NDA)](/pt-BR/tools/tools-console/commandlinetools/xbprovision).

<a id="requirementsSection" />

## Requisitos

**Cabeçalho:** xtfapi.h

**Biblioteca:** XtfApi.lib

**Plataformas com suporte:** Windows (para ferramentas de console XBOX)

<a id="seealsoSection" />

## Confira também

[Implantação de execução a partir do PC (tópico sob NDA)](/pt-BR/home/setup-install/concepts/deployment)<br />[Erros de transporte do XTF (tópico sob NDA)](/pt-BR/tools/tools-console/commandlinetools/xtf-transport-errors)<br />[APIs adicionais do Xtf](/pt-BR/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

- [XtfRemoveTitleOSFromCache](/pt-BR/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcache-xtfapi-xbox-windows-m.md)
- [XtfCacheTitleOS](/pt-BR/reference/tools/xtf/xtfapi/functions/xtfcachetitleos-xtfapi-xbox-windows-m.md)
- [XtfGetCachedTitleOSVersions](/pt-BR/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m.md)
- [XtfGetCachedTitleOSVersionsCallback](/pt-BR/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversionscallback-xtfapi-xbox-windows-m.md)
- [FourPartVersion](/pt-BR/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s.md)
