<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSFileVersion/isDiscardable",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFileVersion(py)discardable"
  },
  "title" : "isDiscardable"
}
-->

# isDiscardable

A Boolean value that specifies whether the system can delete the associated file at some future time.

```
var isDiscardable: Bool { get set }
```

## Discussion

Marking a file version as discardable gives the system the flexibility to reclaim the space, occupied by the associated file, at some future time. Do not, however, depend on the file being discarded.

After setting this property to <doc://com.apple.documentation/documentation/Swift/true>, do not set this property to <doc://com.apple.documentation/documentation/Swift/false> again. Doing so causes the system to raise an exception. In addition, if you set this property to <doc://com.apple.documentation/documentation/Swift/true> for the version of the file returned by the [`currentVersionOfItem(at:)`](/documentation/Foundation/NSFileVersion/currentVersionOfItem(at:)) method, the system raises an exception.

## See Also

[`removeOtherVersionsOfItem(at:)`](/documentation/Foundation/NSFileVersion/removeOtherVersionsOfItem(at:))

Removes all versions of a file, except the current one, from the version store.

[`remove()`](/documentation/Foundation/NSFileVersion/remove())

Remove this version object and its associated file from the version store.



---

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)