> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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\*](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriendstypes/structs/pffriendsclientremovefriendrequest.md)

値が設定されたリクエスト オブジェクト。

**`async`**   XAsyncBlock\*\
*Inout*

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

この API はすべてのプラットフォームで利用できます。ClientAddFriendAsync、ClientSetFriendTagsAsync も参照してください。XAsyncGetStatus を呼び出して操作のステータスを取得します。サービス呼び出しが失敗した場合、非同期の結果はグローバルな PlayFab サービス エラーのいずれかになります。エラー処理の詳細については、ドキュメント ページ「Handling PlayFab Errors」を参照してください。

## 要件

**ヘッダー:** PFFriends.h

## 関連項目

[PFFriends のメンバー](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriends/pffriends_members.md)


## Related topics

- [Services C API overview - PFFriends.h](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriends/pffriends_members.md)
- [PFFriendsClientRemoveFriendRequest](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriendstypes/structs/pffriendsclientremovefriendrequest.md)
- [PFFriendsClientGetFriendsListAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistasync.md)
- [PFFriendsServerRemoveFriendAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriends/functions/pffriendsserverremovefriendasync.md)
- [PFFriendsClientSetFriendTagsAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriends/functions/pffriendsclientsetfriendtagsasync.md)
