<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/FileManager/UnmountOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSFileManagerUnmountOptions"
  },
  "title" : "FileManager.UnmountOptions"
}
-->

# FileManager.UnmountOptions

Options that specify the behavior of an unmount operation.

```
struct UnmountOptions
```

## Topics

### Creating Unmount Options

### Unmount Behavior

[`init(rawValue:)`](/documentation/Foundation/FileManager/UnmountOptions/init(rawValue:))

Creates an unmount option set from the given raw value.

[`allPartitionsAndEjectDisk`](/documentation/Foundation/FileManager/UnmountOptions/allPartitionsAndEjectDisk)

Specifies that all partitions on an unmountable disk should be unmounted.

[`withoutUI`](/documentation/Foundation/FileManager/UnmountOptions/withoutUI)

Specifies that no UI should accompany the unmount operation.



---

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)