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

> 刪除庫存集合。如需庫存集合的詳細資訊，請參閱：https://learn.microsoft.com/gaming/playfab/features/economy-v2/inventory/collections

刪除庫存集合。如需庫存集合的詳細資訊，請參閱：[https://learn.microsoft.com/gaming/playfab/features/economy-v2/inventory/collections](https://learn.microsoft.com/gaming/playfab/features/economy-v2/inventory/collections)

## 語法

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

### 參數

**`entityHandle`**   PFEntityHandle

用於驗證的 PFEntityHandle。

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

已填入的要求物件。

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

用於非同步作業的 XAsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

此 API 適用於所有平台。依指定的識別碼刪除實體的庫存集合。呼叫 XAsyncGetStatus 以取得作業的狀態。如果服務呼叫失敗，非同步結果將為 E\_PF\_INVENTORY\_COLLECTION\_DELETION\_DISALLOWED 或任何全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 需求

**標頭：** PFInventory.h

## 另請參閱

[PFInventory 成員](/zh-TW/services/playfab/api-references/c/pfinventory/pfinventory_members)


## Related topics

- [服務 C API 概觀 - PFInventory.h](/zh-TW/services/playfab/api-references/c/pfinventory/pfinventory_members.md)
- [Delete Inventory Collection](/api-reference/inventory/delete-inventory-collection.md)
- [PFInventoryDeleteInventoryCollectionRequest](/zh-TW/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorydeleteinventorycollectionrequest.md)
- [PFInventoryGetInventoryCollectionIdsAsync](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventorycollectionidsasync.md)
- [PFInventoryDeleteInventoryItemsAsync](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorydeleteinventoryitemsasync.md)
