<!--
{
  "availability" : [
    "iOS: 4.0.0 - 7.0.0",
    "iPadOS: 4.0.0 - 7.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKOverlayPathView/invalidatePath",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKOverlayPathView(im)invalidatePath"
  },
  "title" : "invalidatePath"
}
-->

# invalidatePath

Releases the path associated with the receiver.

```
- (void) invalidatePath;
```

## Discussion

You can call this method at any time where a change in the path information would require you to recreate the path. This method sets the [`path`](/documentation/MapKit/MKOverlayPathView/path) property to `nil`, which causes the cached path to be released.

---

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)