> For the complete documentation index, see [llms.txt](https://bayun.gitbook.io/bayuncoresdk-javascript-programming-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bayun.gitbook.io/bayuncoresdk-javascript-programming-guide/groups/remove-group-member.md).

# 7.8 Remove Group Participant

The `removeParticipantFromGroup` function is used to remove a participant from the Group. Any existing participant of the group can remove other participants. The developer can choose to build stricter access-control mechanisms on top of this if desired (e.g. only the group-owner or group-admin is authorized to remove participants from the group).

The function takes the following parameters :

* **sessionId** : Unique SessionId which is received in the login/registration function response.
* **groupId**  :  GroupId of the group.
* **orgMemberId**  : OrgMemberId of the participant to be removed from the group.
* **orgName**  :  Name of the org of the participant to be removed from the group.

{% tabs %}
{% tab title="JavaScript" %}

```javascript
bayunCore.removeParticipantFromGroup({
    sessionId: "sessionId",
    groupId: "groupId",
    orgMemberId: "orgMemberId",
    orgName: "orgName",
})
.then(result => {
      console.log("Response received for removeMemberFromGroup.");
      console.log(result);
})
.catch(error => {
      console.log("Error caught");
      console.log(error);
});
```

{% endtab %}
{% endtabs %}
