Skip to content

gi-nx


gi-nx / removeLayers

ts
function removeLayers(layerNamesOrIds: string[]): void;

Delete drawing and project layers. Sections on the drawing layers are deleted too

Parameters ​

ParameterTypeDescription
layerNamesOrIdsstring[]Names or full layer IDs of the layers to delete

Returns ​

void

Throws ​

Error if a layer is not in the tree, or none of them can be deleted