clear_usergroup
Remove all members from a Slack usergroup by assigning a randomly selected deleted user, effectively clearing the group.
Instructions
Clear all users from a Slack usergroup.
Since Slack API doesn't support empty usergroups, this uses a workaround by setting the usergroup to contain only a randomly selected deleted user. This effectively clears the usergroup.
Args: usergroup_id: The usergroup ID (S...) to clear
Returns: True if usergroup was cleared successfully, False otherwise
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usergroup_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |