> ## 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\*](/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 のメンバー](/services/playfab/api-references/c/pffriends/pffriends_members)


## Related topics

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