<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSVolume/KernelCacheCoherencyAction/invalidate",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:@E@FSKernelCacheCoherencyAction@FSKernelCacheCoherencyActionInvalidate"
  },
  "title" : "FSVolume.KernelCacheCoherencyAction.invalidate"
}
-->

# FSVolume.KernelCacheCoherencyAction.invalidate

An action to invalidate (clear) the cache, discarding any dirty data without writing to storage.
This also invalidates the item’s cached attributes, so the next request
for attributes fetches them from your module.

```
case invalidate
```

## Discussion

For a directory, this also purges the kernel name cache for the
directory’s entries. With the name cache purged, any later lookup re-populates the cache.

---

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)