Browse SDKs · WASM
SDKsWASMEnterprise

Delete group applications

Delete specified group application records in a batch.

Copy

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:

ParameterTypeRequiredDescription
items[].fromUserIDstringYesApplicant's user ID, corresponding to userID in the application record.
items[].groupIDstringYesID 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.