Browse SDKs · React Native
SDKsReact NativeEnterprise

Delete friend applications

Delete friend-request records with the OpenIM React Native SDK.

Copy

Call deleteFriendRequests() to delete multiple friend-request records.

Parameter description

Each item in the array contains the following fields:

ParameterTypeRequiredDescription
fromUserIDstringYesApplicant's user ID.
toUserIDstringYesRecipient's user ID.
await OpenIMSDK.deleteFriendRequests([
  { fromUserID, toUserID },
]);

Deleting a record is not the same as rejecting the request, and it does not delete an established friendship. For request-record changes, see OnFriendApplicationDeleted in Get received friend requests.