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

# PFFriendsClientRemoveFriendAsync

> 從本機使用者的好友清單中移除指定的使用者

從本機使用者的好友清單中移除指定的使用者

## 語法

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

### 參數

**`entityHandle`**   PFEntityHandle

用於驗證的 PFEntityHandle。

**`request`**   [PFFriendsClientRemoveFriendRequest\*](/zh-TW/services/playfab/api-references/c/pffriendstypes/structs/pffriendsclientremovefriendrequest)

已填入的要求物件。

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

用於非同步作業的 XAsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

此 API 可在所有平台上使用。另請參閱 ClientAddFriendAsync、ClientSetFriendTagsAsync。呼叫 XAsyncGetStatus 以取得作業的狀態。如果服務呼叫失敗，非同步結果將為其中一個全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 需求

**標頭：** PFFriends.h

## 另請參閱

[PFFriends 成員](/zh-TW/services/playfab/api-references/c/pffriends/pffriends_members)


## Related topics

- [服務 C API 概觀 - PFFriends.h](/zh-TW/services/playfab/api-references/c/pffriends/pffriends_members.md)
- [PFFriendsClientRemoveFriendRequest](/zh-TW/services/playfab/api-references/c/pffriendstypes/structs/pffriendsclientremovefriendrequest.md)
- [PFFriendsClientGetFriendsListAsync](/zh-TW/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistasync.md)
- [PFFriendsServerRemoveFriendAsync](/zh-TW/services/playfab/api-references/c/pffriends/functions/pffriendsserverremovefriendasync.md)
- [PFFriendsClientSetFriendTagsAsync](/zh-TW/services/playfab/api-references/c/pffriends/functions/pffriendsclientsetfriendtagsasync.md)
