Delete group
Delete group
zones.groups.delete(strgroup_id, GroupDeleteParams**kwargs)
DELETE/zones/{zoneId}/groups/{groupId}
Deletes a group and its memberships and role assignments. Groups synced from an external directory can only be deleted by that directory (after external sync is disabled).
Parameters
zone_id: str
group_id: str
Delete group
import os
from keycardai_api import KeycardAPI
client = KeycardAPI(
api_key=os.environ.get("KEYCARD_API_API_KEY"), # This is the default and can be omitted
)
client.zones.groups.delete(
group_id="groupId",
zone_id="zoneId",
)