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

# PFInventoryDeleteInventoryCollectionAsync

> Supprime une collection d'inventaire. Vous trouverez plus d'informations sur les collections d'inventaire ici : https://learn.microsoft.com/gaming/playfab/features/economy-v2/inventory/collections

Supprime une collection d'inventaire. Vous trouverez plus d'informations sur les collections d'inventaire ici : [https://learn.microsoft.com/gaming/playfab/features/economy-v2/inventory/collections](https://learn.microsoft.com/gaming/playfab/features/economy-v2/inventory/collections)

## Syntaxe

```cpp theme={null}
HRESULT PFInventoryDeleteInventoryCollectionAsync(  
    PFEntityHandle entityHandle,  
    const PFInventoryDeleteInventoryCollectionRequest* request,  
    XAsyncBlock* async  
)  
```

### Paramètres

**`entityHandle`**   PFEntityHandle

PFEntityHandle à utiliser pour l'authentification.

**`request`**   [PFInventoryDeleteInventoryCollectionRequest\*](/fr/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorydeleteinventorycollectionrequest)

Objet de requête renseigné.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock pour l'opération asynchrone.

### Valeur de retour

Type : HRESULT

Code de résultat de cette opération d'API.

## Notes

Cette API est disponible sur toutes les plateformes. Supprime une collection d'inventaire d'une entité à partir de l'ID spécifié. Appelez XAsyncGetStatus pour obtenir l'état de l'opération. Si l'appel au service échoue, le résultat asynchrone sera E\_PF\_INVENTORY\_COLLECTION\_DELETION\_DISALLOWED ou l'une des erreurs globales du service PlayFab. Consultez la page de documentation "Handling PlayFab Errors" pour plus de détails sur la gestion des erreurs.

## Configuration requise

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

## Voir aussi

[Membres de PFInventory](/fr/services/playfab/api-references/c/pfinventory/pfinventory_members)


## Related topics

- [Vue d'ensemble de l'API C Services - PFInventory.h](/fr/services/playfab/api-references/c/pfinventory/pfinventory_members.md)
- [Delete Inventory Collection](/api-reference/inventory/delete-inventory-collection.md)
- [PFInventoryDeleteInventoryCollectionRequest](/fr/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorydeleteinventorycollectionrequest.md)
- [PFInventoryGetInventoryCollectionIdsAsync](/fr/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventorycollectionidsasync.md)
- [Collections d'inventaire](/fr/services/playfab/economy-monetization/economy-v2/inventory/collections.md)
