<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PencilKit",
  "identifier" : "/documentation/PencilKit/PKDrawing-swift.struct/erasePath(_:mask:transform:)-2b2u3",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "s:9PencilKit9PKDrawingV9erasePath_4mask9transformyAA08PKStrokeE0V_So08NSBezierE0CSgSo17CGAffineTransformVtF"
  },
  "title" : "erasePath(_:mask:transform:)"
}
-->

# erasePath(_:mask:transform:)

```
mutating func erasePath(_ eraserPath: PKStrokePath, mask: NSBezierPath? = nil, transform: CGAffineTransform = .identity)
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)