DeleteGroup

Removes an existing group from the document. Reference groups cannot be removed. Deleting a group does not delete the member objects.

Syntax

rhinoscriptsyntax.DeleteGroup (group_name)

rhinoscript.group.DeleteGroup (group_name)

Parameters

group_name

Required.  String.  The name of an existing group.

Returns

Boolean

True or False indicating success or failure.

Example

import rhinoscriptsyntax as rs

groups = rs.GroupNames()

if groups:

    for group in groups: rs.DeleteGroup(group)

Also See

AddGroup

GroupCount

GroupNames

IsGroup

RenameGroup