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

# PFGroupsRemoveGroupInvitationAsync

> Removes an invitation join a group

Removes an invitation join a group

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

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

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 an existing invitation to join the group. This is used for both rejection of an invitation as well as rescinding an invitation. The invited entity or a parent in its chain (e.g. title) may reject the invitation by calling this method, and any caller with appropriate access in the group may rescind an invitation. No data is returned in the case of success. See also GroupAcceptGroupInvitationAsync, GroupInviteToGroupAsync, GroupListGroupInvitationsAsync, GroupListMembershipOpportunitiesAsync. Call XAsyncGetStatus to get the status of the operation. If the service call is unsuccessful, the async result will be E\_PF\_GROUP\_INVITATION\_NOT\_FOUND 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)
- [PFGroupsListGroupInvitationsAsync](/services/playfab/api-references/c/pfgroups/functions/pfgroupslistgroupinvitationsasync.md)
- [PFGroupsRemoveGroupInvitationRequest](/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsremovegroupinvitationrequest.md)
- [PFGroupsAcceptGroupInvitationAsync](/services/playfab/api-references/c/pfgroups/functions/pfgroupsacceptgroupinvitationasync.md)
- [PFGroupsRemoveGroupApplicationAsync](/services/playfab/api-references/c/pfgroups/functions/pfgroupsremovegroupapplicationasync.md)
