clear_layers

compas_rhino.utilities.clear_layers(layers, include_children=True, include_hidden=True, purge=True)[source]

Delete the objects of the specified layers.

Parameters
  • layers (list[str]) – A list of layer names as fully qualified hierarchical paths.

  • include_hidden (bool, optional) – If True, include all hidden objects.

  • include_children (bool, optional) – If True, include the objects of child layers.

  • purge (bool, optional) – If True, purge history after deleting.

Returns

None