<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEAppPushManager/removeFromPreferences(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEAppPushManager(im)removeFromPreferencesWithCompletionHandler:"
  },
  "title" : "removeFromPreferences(completionHandler:)"
}
-->

# removeFromPreferences(completionHandler:)

Removes the manager’s configuration from the persistent store.

```
func removeFromPreferences(completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```
func removeFromPreferences() async throws
```

## Parameters

`completionHandler`

A completion block that the framework calls after it removes the configuration. If removal failed, the `error` parameter indicates the reason for the failure; otherwise, this parameter is `nil`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)