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

# PFAuthenticationDeleteAsync

> 删除 game_server 实体。

删除 game\_server 实体。

## 语法

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

### 参数

**`entityHandle`**   PFEntityHandle

用于身份验证的 PFEntityHandle。

**`request`**   [PFAuthenticationDeleteRequest\*](/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationdeleterequest)

已填充的请求对象。

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

用于异步操作的 XAsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 备注

此 API 可在 Win32、Linux 和 macOS 上使用。删除 game\_server 实体。调用方可以是尝试删除自身的 game\_server 实体，也可以是尝试为该游戏删除 game\_server 实体的游戏实体。调用 XAsyncGetStatus 获取该操作的状态。如果服务调用失败，异步结果将是全局 PlayFab 服务错误之一。有关错误处理的更多详细信息，请参阅文档页“处理 PlayFab 错误”。

## 要求

**头文件：** PFAuthentication.h

## 另请参阅

[PFAuthentication 成员](/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [服务 C API 概览 - PFAuthentication.h](/zh-CN/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationDeleteRequest](/zh-CN/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationdeleterequest.md)
- [PFAccountManagementServerDeletePlayerAsync](/zh-CN/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverdeleteplayerasync.md)
- [PFDataDeleteFilesAsync](/zh-CN/services/playfab/api-references/c/pfdata/functions/pfdatadeletefilesasync.md)
- [PFStatisticsDeleteStatisticsAsync](/zh-CN/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsdeletestatisticsasync.md)
