---
title: allPartitionsAndEjectDisk
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/filemanager/unmountoptions/allpartitionsandejectdisk
---

# allPartitionsAndEjectDisk

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

## Declaration

```swift
static var allPartitionsAndEjectDisk: FileManager.UnmountOptions { get }
```

## Discussion

Discussion If the volume is on a partitioned disk, this option unmounts all volumes on that disk. Then, then the disk is ejected (if it is ejectable).

## See Also

### Unmount Behavior

- [init(rawValue:)](foundation/filemanager/unmountoptions/init(rawvalue:).md)
- [withoutUI](foundation/filemanager/unmountoptions/withoutui.md)
