Skip to main content
Leave a group to stop receiving messages and updates from it. Once you leave, you’ll need to rejoin to participate again.
Group owners cannot leave without first transferring ownership to another member. See Transfer Group Ownership.

Leave a Group

Use leaveGroup() to leave a group.
Once a group is left, the user will no longer receive any updates or messages pertaining to the group. On success, the method resolves with true (boolean).

Real-time Group Member Left Events

Register a GroupListener to receive events when members leave.
Always remove group listeners when they’re no longer needed (e.g., on component unmount or page navigation). Failing to remove listeners can cause memory leaks and duplicate event handling.

Missed Group Member Left Events

When fetching message history, leave events appear as Action messages with:
  • action"left"
  • actionByUser who left
  • actionForGroup that was left

Next Steps

Join a Group

Join public or password-protected groups

Delete a Group

Permanently delete a group

Kick & Ban Members

Remove or ban members from a group

Retrieve Groups

Fetch and filter the list of groups