Click or drag to resize

LayerTablePurge Method (Guid, Boolean)

Deletes a layer and all geometry objects on a layer.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool Purge(
	Guid layerId,
	bool quiet
)

Parameters

layerId
Type: SystemGuid
Id of the layer to purge.
quiet
Type: SystemBoolean
If true, no warning message box appears if a layer the layer cannot be deleted because it is the current layer.

Return Value

Type: Boolean
true if successful. false if layerIndex is out of range or the the layer cannot be deleted because it is the current layer.
See Also