---
title: "removePendingExpiredSessionReports(_:withAppIdentifier:storageDirectoryAt:)"
framework: avfoundation
role: symbol
role_heading: Type Method
path: "avfoundation/avcontentkeysession/removependingexpiredsessionreports(_:withappidentifier:storagedirectoryat:)"
---

# removePendingExpiredSessionReports(_:withAppIdentifier:storageDirectoryAt:)

Removes expired session reports from storage.

## Declaration

```swift
class func removePendingExpiredSessionReports(_ expiredSessionReports: [Data], withAppIdentifier appIdentifier: Data, storageDirectoryAt storageURL: URL)
```

## Parameters

- `expiredSessionReports`: An array of expired session reports to delete.
- `appIdentifier`: The opaque identifier for the app.
- `storageURL`: The URL that points to the directory containing expired session reports.

## See Also

### Handling expired session reports

- [pendingExpiredSessionReports(withAppIdentifier:storageDirectoryAt:)](avfoundation/avcontentkeysession/pendingexpiredsessionreports(withappidentifier:storagedirectoryat:).md)
