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

Supprime du cache de la console le Game OS correspondant à la [FourPartVersion](/fr/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s) spécifiée.

<a id="syntaxSection" />

## Syntaxe

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

<a id="parametersSection" />

### Paramètres

*address*<br />Type : PCWSTR

\[in] Adresse de la console.

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

\[in] Numéro de version en quatre parties du Game OS à supprimer.

<a id="retvalSection" />

### Valeur de retour

Type : HRESULT

Retourne `S_OK` en cas de réussite ; sinon, retourne un code d'erreur HRESULT.

<a id="remarksSection" />

## Remarques

Utilisez cette fonction pour gérer les fichiers Game OS provisionnés en supprimant du cache de la console le Game OS correspondant à la `FourPartVersion` spécifiée. Vous pouvez utiliser la fonction [XtfGetCachedTitleOSVersions](/fr/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m) pour obtenir la `FourPartVersion` de chaque Game OS mis en cache sur la console, ou la fonction [XtfGetTitleOSFourPartVersion](/fr/reference/tools/xtf/xtfapi/functions/xtfgettitleosfourpartversion-xtfapi-xbox-windows-m) pour obtenir la `FourPartVersion` du Game OS du titre en cours d'exécution. Si vous tentez de supprimer un Game OS signalé comme système d'exploitation de secours, une erreur se produit.

Si vous ne disposez pas d'une [FourPartVersion](/fr/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s) pour le Game OS à supprimer, utilisez plutôt la fonction [XtfRemoveTitleOSFromCache](/fr/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcache-xtfapi-xbox-windows-m) pour supprimer un Game OS en spécifiant un autre identificateur, tel que le chemin complet et le nom du fichier GameOs.vxd du Game OS à supprimer.

Vous pouvez également ajouter un Game OS au cache de la console en appelant la fonction [XtfCacheTitleOS](/fr/reference/tools/xtf/xtfapi/functions/xtfcachetitleos-xtfapi-xbox-windows-m). Pour plus d'informations sur la gestion des fichiers Game OS provisionnés, consultez [Gestion des applications (xbapp.exe) (rubrique NDA)](/fr/tools/tools-console/commandlinetools/xbapp) et [Provisionnement (xbprovision.exe) (rubrique NDA)](/fr/tools/tools-console/commandlinetools/xbprovision).

<a id="requirementsSection" />

## Configuration requise

**En-tête :** xtfapi.h

**Bibliothèque :** XtfApi.lib

**Plateformes prises en charge :** Windows (pour les outils de console XBOX)

<a id="seealsoSection" />

## Voir aussi

[Déploiement Exécuter à partir du PC (rubrique NDA)](/fr/home/setup-install/concepts/deployment)<br />[Erreurs de transport XTF (rubrique NDA)](/fr/tools/tools-console/commandlinetools/xtf-transport-errors)<br />[API Xtf supplémentaires](/fr/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

- [XtfRemoveTitleOSFromCacheByVersion](/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcachebyversion-xtfapi-xbox-windows-m.md)
- [XtfRemoveTitleOSFromCache](/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcache-xtfapi-xbox-windows-m.md)
- [XtfCacheTitleOS](/reference/tools/xtf/xtfapi/functions/xtfcachetitleos-xtfapi-xbox-windows-m.md)
