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

# PFGroupsRemoveMembersAsync

> Removes members from a group.

Removes members from a group.

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFGroupsRemoveMembersRequest\*](/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsremovemembersrequest)

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. Removes members from a group. A member can always remove themselves from a group, regardless of permissions. Returns nothing if successful. See also GroupAddMembersAsync, GroupListGroupMembersAsync. Call XAsyncGetStatus to get the status of the operation. If the service call is unsuccessful, the async result will be E\_PF\_ROLE\_DOES\_NOT\_EXIST or any of the global PlayFab Service errors. See doc page "Handling PlayFab Errors" for more details on error handling.

## Requirements

**Header:** PFGroups.h

## See also

[PFGroups members](/services/playfab/api-references/c/pfgroups/pfgroups_members)


## Related topics

- [Services C API overview - PFGroups.h](/services/playfab/api-references/c/pfgroups/pfgroups_members.md)
- [PFGroupsRemoveGroupApplicationAsync](/services/playfab/api-references/c/pfgroups/functions/pfgroupsremovegroupapplicationasync.md)
- [PFGroupsRemoveGroupInvitationAsync](/services/playfab/api-references/c/pfgroups/functions/pfgroupsremovegroupinvitationasync.md)
- [PFGroupsRemoveMembersRequest](/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsremovemembersrequest.md)
- [PFGroupsAddMembersAsync](/services/playfab/api-references/c/pfgroups/functions/pfgroupsaddmembersasync.md)
