---
title: "invalidateSessionContent(at:)"
framework: lockedcameracapture
role: symbol
role_heading: Instance Method
path: "lockedcameracapture/lockedcameracapturemanager/invalidatesessioncontent(at:)"
---

# invalidateSessionContent(at:)

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

## Declaration

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

## Parameters

- `url`: A URL from doc://com.apple.LockedCameraCapture/documentation/LockedCameraCapture/LockedCameraCaptureManager/sessionContentURLs. The system ignores other URLs.

## Discussion

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.
