Browse SDKs · HarmonyOS
Platform
SDKsHarmonyOSEnterprise

Delete group applications

Batch delete specified group join application records.

Copy

This operation removes application records identified by group and applicant, making it suitable for cleaning up processed or obsolete entries from display lists.

Code example

import sdk, { DeleteGroupRequestsReq } from '@openimsdk/imsdk';

const request: DeleteGroupRequestsReq = {
  groupRequests: [{ groupID: application.groupID, fromUserID: application.userID }],
};
await sdk.deleteGroupRequests(request);

Parameters

ParameterTypeRequiredDescription
groupRequestsGroupRequestItem[]YesList of group application records to delete, each containing groupID and fromUserID.

Return value

Returns a Promise that resolves to void when the records have been deleted.

State changes after the call

Deleting application records does not reject the application. To submit a review decision, first use Accept group application or Refuse group application. Once the Promise resolves, clients can remove local records matching groupID:userID. For complete event listeners, see Retrieve received group applications.