<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: 18.4.0 -",
    "macOS: 15.4.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKWebExtensionController/Configuration-swift.class/nonPersistent()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKWebExtensionControllerConfiguration(cm)nonPersistentConfiguration"
  },
  "title" : "nonPersistent()"
}
-->

# nonPersistent()

Returns a new non-persistent configuration.

```
class func nonPersistent() -> Self
```

## Discussion

If a [`WKWebExtensionController`](/documentation/WebKit/WKWebExtensionController) is associated with a non-persistent configuration, no data will be written to the file system. This is useful for extensions in “private browsing” situations.

---

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)