---
title: "removeConfiguration(forHS20DomainName:)"
framework: networkextension
role: symbol
role_heading: Instance Method
path: "networkextension/nehotspotconfigurationmanager/removeconfiguration(forhs20domainname:)"
---

# removeConfiguration(forHS20DomainName:)

Removes a Wi-Fi hotspot configuration, identified by a Hotspot 2.0 domain name, that your app previously added.

## Declaration

```swift
func removeConfiguration(forHS20DomainName domainName: String)
```

## Parameters

- `domainName`: The domain name of the HS 2.0 Wi-Fi network.

## Discussion

Discussion Your app can use this method to delete a configuration that it has added, but not a configuration added by another app or by the user.  The user can also delete configured networks through Settings > Wi-Fi.

## See Also

### Removing configuration

- [removeConfiguration(forSSID:)](networkextension/nehotspotconfigurationmanager/removeconfiguration(forssid:).md)
