Browse SDKs · React Native
Platform
SDKsReact NativeEnterprise

Delete group requests

Batch remove group join request history records using the OpenIM React Native SDK.

Copy

Batch purge group join application records from the local history list. This operation cleans up record entries only; it does not approve or reject applications:

await OpenIMSDK.deleteGroupRequests([
  {
    fromUserID: application.userID,
    groupID: application.groupID,
  },
]);

Parameters

Accepts an array of group request identifiers:

ParameterTypeRequiredDescription
fromUserIDstringYesApplicant user ID (corresponds to application.userID).
groupIDstringYesTarget group ID of the application.

Deleting records does not change the approval status of a pending request. To process applications, see Accept a group application and Refuse a group application.

Return value

A resolved Promise confirms that the group request records were deleted on the server.

Deletion triggers the OnGroupApplicationDeleted event. Remove items from your local application list using the composite key groupID:fromUserID. For event details, see Get received group applications.