---
title: isDiscardable
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsfileversion/isdiscardable
---

# isDiscardable

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

## Declaration

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

## Discussion

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 true, do not set this property to false again. Doing so causes the system to raise an exception. In addition, if you set this property to true for the version of the file returned by the currentVersionOfItem(at:) method, the system raises an exception.

## See Also

### Related Documentation

- [removeOtherVersionsOfItem(at:)](foundation/nsfileversion/removeotherversionsofitem(at:).md)
- [remove()](foundation/nsfileversion/remove().md)

### Accessing the Version Information

- [url](foundation/nsfileversion/url.md)
- [localizedName](foundation/nsfileversion/localizedname.md)
- [localizedNameOfSavingComputer](foundation/nsfileversion/localizednameofsavingcomputer.md)
- [modificationDate](foundation/nsfileversion/modificationdate.md)
- [persistentIdentifier](foundation/nsfileversion/persistentidentifier.md)
