> ## 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\*](/zh-TW/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 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 需求

**標頭：** PFAuthentication.h

## 另請參閱

[PFAuthentication 成員](/zh-TW/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [服務 C API 概觀 - PFAuthentication.h](/zh-TW/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [Delete](/api-reference/authentication/delete.md)
- [PFAuthenticationDeleteRequest](/zh-TW/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationdeleterequest.md)
- [PFAccountManagementServerDeletePlayerAsync](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverdeleteplayerasync.md)
- [PFPlayerDataManagementServerDeletePlayerCustomPropertiesAsync](/zh-TW/services/playfab/api-references/c/pfplayerdatamanagement/functions/pfplayerdatamanagementserverdeleteplayercustompropertiesasync.md)
