---
title: removeFromPreferences()
framework: networkextension
role: symbol
role_heading: Instance Method
path: networkextension/nehotspotmanager/removefrompreferences()
---

# removeFromPreferences()

Removes the hotspot manager configuration from the Network Extension preferences.

## Declaration

```swift
final func removeFromPreferences() async throws
```

## Discussion

Discussion This method throws NEHotspotManager.Error value asynchronously on failure.

## See Also

### Managing the saved configuration

- [loadFromPreferences()](networkextension/nehotspotmanager/loadfrompreferences().md)
- [saveToPreferences()](networkextension/nehotspotmanager/savetopreferences().md)
