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

> Removes a specified user from the friend list of the local user

Removes a specified user from the friend list of the local user

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

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

Populated request object.

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

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on all platforms. See also ClientAddFriendAsync, ClientSetFriendTagsAsync. Call XAsyncGetStatus to get the status of the operation. If the service call is unsuccessful, the async result will be one of global PlayFab Service errors. See doc page "Handling PlayFab Errors" for more details on error handling.

## Requirements

**Header:** PFFriends.h

## See also

[PFFriends members](/services/playfab/api-references/c/pffriends/pffriends_members)
