SDKsReact Native
Quit a group
Leave a joined group chat as a member or administrator using the OpenIM React Native SDK.
Leave a group that the authenticated account is currently a member of:
await OpenIMSDK.quitGroup(groupID);Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
groupID | string | Yes | Target group ID to leave. |
Group owners cannot directly quit a group; the owner must first Transfer group ownership before leaving.
Return value
A resolved Promise confirms that the current user has left the group on the server.
Leaving the group triggers OnJoinedGroupDeleted on the departing client and OnGroupMemberDeleted for remaining members. Use groupID to remove the group from the local joined groups list and clear group conversation state. For full event listeners, see Group overview.
Was this page helpful?