---
title: "mapTemplate(_:didRequestToRemove:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpmaptemplatedelegate/maptemplate(_:didrequesttoremove:)"
---

# mapTemplate(_:didRequestToRemove:)

Called when the user removes a waypoint. Perform a reroute to update the route accordingly.

## Declaration

```swift
optional func mapTemplate(_ mapTemplate: CPMapTemplate, didRequestToRemove waypoint: CPNavigationWaypoint)
```
