delete_layers
- compas_rhino.layers.delete_layers(layers)[source]
Delete layers and all contained objects.
- Parameters:
- layersdict or list[str]
When given as a list the list elements should be name of layers given with
"::"
as a separator between hierarchies. When provided as a dictionary, keys represent layer names, and values are dictionaries defining optional nested layers.
- Returns:
- None
Examples
layers = {'COMPAS': {'layers': {'Datastructures': {'layers': {'Mesh': {}, 'Graph': {}}}}}} create_layers(layers) delete_layers(['COMPAS::Datastructures::Graph']) delete_layers({'COMPAS': {'layers': {'Datastructures': {'layers': {'Mesh': {}}}}}})