---
title: FSVolume.ItemDeactivationOptions
framework: fskit
role: symbol
role_heading: Structure
path: fskit/fsvolume/itemdeactivationoptions
---

# FSVolume.ItemDeactivationOptions

Options to specify the item deactivation policy.

## Declaration

```swift
struct ItemDeactivationOptions
```

## Overview

Overview Callers may want to set a deactivation policy because FSVolume/ItemDeactivation/deactivateItem(_:) processing blocks the kernel. Setting a deactivation policy allows the file system to take action at a definitive point in the item’s life cycle. These options allow the file system to instruct the FSKit kernel of which circumstances require the expense of a round-trip call to the module. note: To avoid performing deactivation calls, Objective-C developers use the value FSItemDeactivationNever. In Swift, use an empty option set ([]).

## Topics

### Declaring deactivation options

- [forRemovedItems](fskit/fsvolume/itemdeactivationoptions/forremoveditems.md)
- [forPreallocatedItems](fskit/fsvolume/itemdeactivationoptions/forpreallocateditems.md)
- [always](fskit/fsvolume/itemdeactivationoptions/always.md)

### Working with raw values

- [init(rawValue:)](fskit/fsvolume/itemdeactivationoptions/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

### Setting deactivation policy

- [itemDeactivationPolicy](fskit/fsvolume/itemdeactivation/itemdeactivationpolicy.md)
