gi-nx / removeLayers
ts
function removeLayers(layerNamesOrIds: string[]): void;Delete drawing and project layers. Sections on the drawing layers are deleted too
Parameters
| Parameter | Type | Description |
|---|---|---|
layerNamesOrIds | string[] | 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