delete_layers

compas_rhino.utilities.delete_layers(layers)[source]

Delete layers and all contained objects.

Parameters

layers (dict 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': {}, 'Network': {}}}}}}

create_layers(layers)

delete_layers(['COMPAS::Datastructures::Network'])
delete_layers({'COMPAS': {'layers': {'Datastructures': {'layers': {'Mesh': {}}}}}})