---
title: NSFileProviderManager.DisconnectionOptions
framework: fileprovider
role: symbol
role_heading: Structure
path: fileprovider/nsfileprovidermanager/disconnectionoptions
---

# NSFileProviderManager.DisconnectionOptions

Options for disconnecting a domain from the extension.

## Declaration

```swift
struct DisconnectionOptions
```

## Overview

Overview Use an empty set to indicate that the disconnection isn’t temporary, such as when the user logs out.

## Topics

### Choosing Disconnection Options

- [temporary](fileprovider/nsfileprovidermanager/disconnectionoptions/temporary.md)

### Creating Disconnection Options

- [init(rawValue:)](fileprovider/nsfileprovidermanager/disconnectionoptions/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Working with domains

- [init(for:)](fileprovider/nsfileprovidermanager/init(for:).md)
- [import(_:fromDirectoryAt:completionHandler:)](fileprovider/nsfileprovidermanager/import(_:fromdirectoryat:completionhandler:).md)
- [add(_:completionHandler:)](fileprovider/nsfileprovidermanager/add(_:completionhandler:).md)
- [getDomainsWithCompletionHandler(_:)](fileprovider/nsfileprovidermanager/getdomainswithcompletionhandler(_:).md)
- [remove(_:completionHandler:)](fileprovider/nsfileprovidermanager/remove(_:completionhandler:).md)
- [remove(_:mode:completionHandler:)](fileprovider/nsfileprovidermanager/remove(_:mode:completionhandler:).md)
- [removeAllDomains(completionHandler:)](fileprovider/nsfileprovidermanager/removealldomains(completionhandler:).md)
- [NSFileProviderManager.DomainRemovalMode](fileprovider/nsfileprovidermanager/domainremovalmode.md)
- [disconnect(reason:options:completionHandler:)](fileprovider/nsfileprovidermanager/disconnect(reason:options:completionhandler:).md)
- [reconnect(completionHandler:)](fileprovider/nsfileprovidermanager/reconnect(completionhandler:).md)
- [waitForStabilization(completionHandler:)](fileprovider/nsfileprovidermanager/waitforstabilization(completionhandler:).md)
- [temporaryDirectoryURL()](fileprovider/nsfileprovidermanager/temporarydirectoryurl().md)
