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

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

Supprimer une collection d'inventaire. Vous trouverez plus d'information 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-CA/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorydeleteinventorycollectionrequest)

Objet de requête renseigné.

**`async`**   XAsyncBlock\*\
*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 selon l'ID spécifié pour une entité. Appelez XAsyncGetStatus pour obtenir l'état de l'opération. Si l'appel de 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-CA/services/playfab/api-references/c/pfinventory/pfinventory_members)


## Related topics

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