<!--
{
  "availability" : [
    "iOS: 12.2.0 -",
    "iPadOS: 12.2.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVContentKeySession/invalidateAllPersistableContentKeys(forApp:options:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVContentKeySession(im)invalidateAllPersistableContentKeysForApp:options:completionHandler:"
  },
  "title" : "invalidateAllPersistableContentKeys(forApp:options:completionHandler:)"
}
-->

# invalidateAllPersistableContentKeys(forApp:options:completionHandler:)

Invalidates all of an app’s persistable content keys and creates a secure server playback context (SPC) to verify the outcome of an invalidation request.

```
func invalidateAllPersistableContentKeys(forApp appIdentifier: Data, options: [AVContentKeySessionServerPlaybackContextOption : Any]? = nil, completionHandler handler: @escaping @Sendable (Data?, (any Error)?) -> Void)
```

## Parameters

`appIdentifier`

An opaque identifier for the app.

`options`

Additional data necessary to generate the server playback context. Pass `nil` to indicate no additional options.

    See [`AVContentKeySessionServerPlaybackContextOption`](/documentation/AVFoundation/AVContentKeySessionServerPlaybackContextOption)     for supported options.

`handler`

The completion handler callback.

## Discussion

---

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)