SDKsWASMEnterprise
Delete group applications
Delete specified group application records in a batch.
deleteGroupRequests() deletes application records in a batch, identifying each record by the applicant and group combination.
Parameters
The method accepts an array directly. Each item contains the following fields:
| Parameter | Type | Required | Description |
|---|---|---|---|
items[].fromUserID | string | Yes | Applicant's user ID, corresponding to userID in the application record. |
items[].groupID | string | Yes | ID of the group the user applied to join. |
await openimsdk.deleteGroupRequests([
{
fromUserID: application.userID,
groupID: application.groupID,
},
]);Deleting a record is not the same as rejecting a pending application. To record a review decision, call acceptGroupApplication() or refuseGroupApplication() first.
When the Promise resolves, the deletion request has completed. OnGroupApplicationDeleted may arrive afterward; remove the record by groupID:userID when it does. For the complete listener implementation, see Get received group applications.
Was this page helpful?