---
title: removeAllPoints()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsbezierpath/removeallpoints()
---

# removeAllPoints()

Removes all path elements from the path, effectively clearing the path.

## Declaration

```swift
func removeAllPoints()
```

## See Also

### Accessing Elements of a Path

- [cgPath](appkit/nsbezierpath/cgpath.md)
- [elementCount](appkit/nsbezierpath/elementcount.md)
- [element(at:)](appkit/nsbezierpath/element(at:).md)
- [element(at:associatedPoints:)](appkit/nsbezierpath/element(at:associatedpoints:).md)
- [setAssociatedPoints(_:at:)](appkit/nsbezierpath/setassociatedpoints(_:at:).md)
