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

> 删除库存集合。有关库存集合的详细信息，请访问：/playfab/economy-monetization/economy-v2/inventory/collections

删除库存集合。有关库存集合的详细信息，请访问：[/services/playfab/economy-monetization/economy-v2/inventory/collections](/services/playfab/economy-monetization/economy-v2/inventory/collections)

## 语法

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

### 参数

**`entityHandle`**   PFEntityHandle

用于身份验证的 PFEntityHandle。

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

已填充的请求对象。

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

用于异步操作的 XAsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 备注

此 API 可在所有平台上使用。按指定的 Id 删除某个实体的库存集合。调用 XAsyncGetStatus 获取该操作的状态。如果服务调用不成功，异步结果将是全局 PlayFab 服务错误之一。有关错误处理的更多详细信息，请参阅文档页"处理 PlayFab 错误"。

## 要求

**头文件：** PFInventory.h

## 另请参阅

[PFInventory 成员](/services/playfab/api-references/c/pfinventory/pfinventory_members)
