---
title: AIModelCache.Policy.PurgeConditions
framework: coreai
role: symbol
role_heading: Structure
path: coreai/aimodelcache/policy/purgeconditions-swift.struct
---

# AIModelCache.Policy.PurgeConditions

A set of conditions that determine when the system purges specialized assets.

## Declaration

```swift
struct PurgeConditions
```

## Overview

Overview note: The system always purges assets on OS update regardless of these conditions.

## Topics

### Type Properties

- [sourceAssetChangedOrDeleted](coreai/aimodelcache/policy/purgeconditions-swift.struct/sourceassetchangedordeleted.md)
- [storagePressure](coreai/aimodelcache/policy/purgeconditions-swift.struct/storagepressure.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [Hashable](swift/hashable.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)
