---
title: "removeObserver(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/notificationcenter/removeobserver(_:)-2gmm0"
---

# removeObserver(_:)

Stops the observation represented by the given observation token.

## Declaration

```swift
func removeObserver(_ token: NotificationCenter.ObservationToken)
```

## Parameters

- `token`: A unique token representing a specific observer in a specific notification center. You receive this type from prior calls to addObserver(of:for:using:).

## See Also

### Observing concurrency-safe notifications

- [addObserver(of:for:using:)](foundation/notificationcenter/addobserver(of:for:using:)-4d19x.md)
- [addObserver(of:for:using:)](foundation/notificationcenter/addobserver(of:for:using:)-90os.md)
- [addObserver(of:for:using:)](foundation/notificationcenter/addobserver(of:for:using:)-56bn4.md)
- [addObserver(of:for:using:)](foundation/notificationcenter/addobserver(of:for:using:)-twm3.md)
- [addObserver(of:for:using:)](foundation/notificationcenter/addobserver(of:for:using:)-t1wr.md)
- [addObserver(of:for:using:)](foundation/notificationcenter/addobserver(of:for:using:)-64uw3.md)
- [NotificationCenter.ObservationToken](foundation/notificationcenter/observationtoken.md)
