# `GSLayer cleanUpPaths`

*Instance Method*

Removes empty and negligible paths and simplifies the remaining paths.

## Declaration

```swift
func cleanUpPaths()
```

```objc
- (void) cleanUpPaths;
```

```python
cleanUpPaths()
```

## See Also

### Cleaning Paths

- [`GSLayer checkConnections`](/Core/GlyphsCore/GSLayer/checkConnections) — Updates node connections to match the geometry of their paths.
- [`GSLayer correctPathDirection`](/Core/GlyphsCore/GSLayer/correctPathDirection) — Sets closed path directions according to containment and puts the outer path first.
- [`GSLayer checkForCoincidentPaths`](/Core/GlyphsCore/GSLayer/checkForCoincidentPaths) — Finds paths whose nodes have coincident positions.

