---
title: "remove(_:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpnowplayingtemplate/remove(_:)"
---

# remove(_:)

Removes an observer from receiving Now Playing template events.

## Declaration

```swift
func remove(_ observer: any CPNowPlayingTemplateObserver)
```

## Parameters

- `observer`: An object that implements the doc://com.apple.carplay/documentation/CarPlay/CPNowPlayingTemplateObserver protocol.

## Discussion

Discussion You must register an observer using the add(_:) method before calling this method.

## See Also

### Observing Now Playing Events

- [add(_:)](carplay/cpnowplayingtemplate/add(_:).md)
- [CPNowPlayingTemplateObserver](carplay/cpnowplayingtemplateobserver.md)
