# `GSLayer removeNodesCutPath:`

*Instance Method*

Removes mapped nodes while preserving the unselected path portions.

## Declaration

```swift
func removeNodesCutPath(_ indexPaths: [IndexPath])
```

```objc
- (void) removeNodesCutPath:(NSArray<NSIndexPath *> *) indexPaths;
```

```python
removeNodesCutPath_(indexPaths: list[NSIndexPath])
```

## Parameters

- `indexPaths` — Node index paths from [`GSLayer selectedElementsMappings`](/Core/GlyphsCore/GSLayer/selectedElementsMappings).

## Discussion

Paths are split where necessary, and hints attached to removed nodes are removed.

## See Also

### Selection Serialization

- [`GSLayer selectedObjects`](/Core/GlyphsCore/GSLayer/selectedObjects) — Content representing the selected elements for serialization and paste.
- [`GSLayer selectedElementsMappings`](/Core/GlyphsCore/GSLayer/selectedElementsMappings) — Structural mappings for the selected elements.
- [`GSLayer removeMappedElements:`](/Core/GlyphsCore/GSLayer/removeMappedElements:) — Removes elements described by structural mappings.
- [`GSLayer removeElement:`](/Core/GlyphsCore/GSLayer/removeElement:) — Removes a selectable element from the layer.
- [`GSLayer pasteDict:format:selectedNodes:error:`](/Core/GlyphsCore/GSLayer/pasteDict:format:selectedNodes:error:) — Adds content from a serialized selection dictionary.
- [`GSLayer selectedPaths:notSelected:`](/Core/GlyphsCore/GSLayer/selectedPaths:notSelected:) — Separates paths by whether they contain selected nodes.

