<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LockedCameraCapture",
  "identifier" : "/documentation/LockedCameraCapture/LockedCameraCaptureManager/invalidateSessionContent(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "LockedCameraCapture"
    ],
    "preciseIdentifier" : "s:19LockedCameraCapture0abC7ManagerC24invalidateSessionContent2aty10Foundation3URLV_tYaKF"
  },
  "title" : "invalidateSessionContent(at:)"
}
-->

# invalidateSessionContent(at:)

Tells the system that the app no longer needs the directory at the URL and it can be deleted.

```
final func invalidateSessionContent(at url: URL) async throws
```

## Parameters

`url`

A URL from
[`sessionContentURLs`](/documentation/LockedCameraCapture/LockedCameraCaptureManager/sessionContentURLs).
The system ignores other URLs.

## Discussion

The directory at the `URL` contains captured content for a session. Store the captured content
appropriately before calling this method, otherwise the system deletes it.

---

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)