---
title: "CFNotificationCenterRemoveEveryObserver(_:_:)"
framework: Core Foundation
role: symbol
role_heading: Function
path: "corefoundation/cfnotificationcenterremoveeveryobserver(_:_:)"
---

# CFNotificationCenterRemoveEveryObserver(_:_:)

Stops an observer from receiving any notifications from any object.

## Declaration

```swift
func CFNotificationCenterRemoveEveryObserver(_ center: CFNotificationCenter!, _ observer: UnsafeRawPointer!)
```

## Parameters

- `center`: The notification center from which to remove observers.
- `observer`: The observer. This value must not be NULL.

## Discussion

Discussion If you no longer want an observer to receive any notifications, perhaps because the observer is being deallocated, you can call this function to unregister the observer from all the notifications for which it had previously registered.

## See Also

### Adding and Removing Observers

- [CFNotificationCenterAddObserver(_:_:_:_:_:_:)](corefoundation/cfnotificationcenteraddobserver(_:_:_:_:_:_:).md)
- [CFNotificationCenterRemoveObserver(_:_:_:_:)](corefoundation/cfnotificationcenterremoveobserver(_:_:_:_:).md)
