<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAI",
  "identifier" : "/documentation/CoreAI/AIModelCache/Policy/init(purgeConditions:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core AI"
    ],
    "preciseIdentifier" : "s:15CoreAIDelegates12AIModelCacheC6PolicyV15purgeConditionsA2E05PurgeG0V_tcfc"
  },
  "title" : "init(purgeConditions:)"
}
-->

# init(purgeConditions:)

Creates a policy with the specified purge conditions.

```
init(purgeConditions: AIModelCache.Policy.PurgeConditions)
```

## Parameters

`purgeConditions`

The set of conditions under which the system can purge
specialized assets.

## Discussion> Note: On tvOS any policy will be implicitly purgeable for storagePressure.

---

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)