---
title: FileManager.UnmountOptions
framework: foundation
role: symbol
role_heading: Structure
path: foundation/filemanager/unmountoptions
---

# FileManager.UnmountOptions

Options that specify the behavior of an unmount operation.

## Declaration

```swift
struct UnmountOptions
```

## Topics

### Unmount Behavior

- [init(rawValue:)](foundation/filemanager/unmountoptions/init(rawvalue:).md)
- [allPartitionsAndEjectDisk](foundation/filemanager/unmountoptions/allpartitionsandejectdisk.md)
- [withoutUI](foundation/filemanager/unmountoptions/withoutui.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

### Unmounting volumes

- [unmountVolume(at:options:completionHandler:)](foundation/filemanager/unmountvolume(at:options:completionhandler:).md)
- [NSFileManagerUnmountDissentingProcessIdentifierErrorKey](foundation/nsfilemanagerunmountdissentingprocessidentifiererrorkey.md)
