---
title: invalidatePath
framework: mapkit
role: symbol
role_heading: Instance Method
path: mapkit/mkoverlaypathview/invalidatepath
---

# invalidatePath

Releases the path associated with the receiver.

## Declaration

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

## Discussion

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 property to nil, which causes the cached path to be released.

## See Also

### Creating and managing the path

- [path](mapkit/mkoverlaypathview/path.md)
- [createPath](mapkit/mkoverlaypathview/createpath.md)
