empty_group()
Removes all user assignments from a group. The group itself is kept. This is the usual preparation step before delete_group(), because a group can only be deleted when empty.
1. Signature
-
Sync
-
Async
ecm.security.empty_group(group: ECMGroup | str) -> None
await ecm.security.empty_group(group: ECMGroup | str) -> None
2. Parameters
| Parameter | Default | Description |
|---|---|---|
|
— |
The group to empty — either an |
5. Examples
-
Sync
-
Async
ecm.security.empty_group("Sales")
assert ecm.security.group_members("Sales") == []
await ecm.security.empty_group("Sales")
assert await ecm.security.group_members("Sales") == []
6. See also
-
delete_group() – delete the group
-
remove_user_from_group() – remove a single user
-
group_members() – read members