> For the complete documentation index, see [llms.txt](https://docs.bayunsystems.com/bayuncoresdk-python/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bayunsystems.com/bayuncoresdk-python/groups/delete-group.md).

# 6.9 Delete Group

The `deleteGroup` function is used to delete a group the user is a member of. Any existing member of the group can delete the group. 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 delete the group).

The function takes the following parameters :

* **sessionId** : Unique SessionId which is received in the authenticate function response.
* **groupId** : Group Id of the Group.

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

```python
response = bayunCore.deleteGroup("<sessionId>", "<groupId>")
sessionId = response.sessionId
```

{% endtab %}
{% endtabs %}
