<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSVolume/ItemDeactivationHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:objc(pl)FSVolumeItemDeactivationHandler"
  },
  "title" : "FSVolume.ItemDeactivationHandler"
}
-->

# FSVolume.ItemDeactivationHandler

Methods and properties implemented by volumes that support deactivating items.

```
protocol ItemDeactivationHandler : NSObjectProtocol
```

## Overview> Important: This protocol replaces the ``doc://FSKit/documentation/FSKit/FSVolume/ItemDeactivation`` protocol. It exposes the same functionality, while using the ``doc://FSKit/documentation/FSKit/FSDeactivateItemResult`` object. This object adds the ability to reply with free space from ``doc://FSKit/documentation/FSKit/FSVolume/ItemDeactivationHandler/deactivateItem(_:context:replyHandler:)``.

## Topics

### Deactivating an item

[`func deactivateItem(FSItem, context: FSContext, replyHandler: (FSDeactivateItemResult?, (any Error)?) -> Void)`](/documentation/FSKit/FSVolume/ItemDeactivationHandler/deactivateItem(_:context:replyHandler:))

Notifies the file system that the kernel is no longer making immediate use of the given item.

[`class FSDeactivateItemResult`](/documentation/FSKit/FSDeactivateItemResult)

The result of a deactivate-item call.

### Inspecting volume properties

[`var itemDeactivationPolicy: FSVolume.ItemDeactivationOptions`](/documentation/FSKit/FSVolume/ItemDeactivationHandler/itemDeactivationPolicy)

A property that tells FSKit to which types of items the deactivation applies, if any.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)