---
title: "removeCachedResponses(since:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/urlcache/removecachedresponses(since:)"
---

# removeCachedResponses(since:)

Clears the given cache of any cached responses since the provided date.

## Declaration

```swift
func removeCachedResponses(since date: Date)
```

## Parameters

- `date`: The earliest date of responses that should remain in the cache. Any responses with dates later than this parameter should be removed.

## Mentioned in

Accessing cached data

## See Also

### Removing cached objects

- [removeCachedResponse(for:)](foundation/urlcache/removecachedresponse(for:)-1dh89.md)
- [removeCachedResponse(for:)](foundation/urlcache/removecachedresponse(for:)-1zwp6.md)
- [removeAllCachedResponses()](foundation/urlcache/removeallcachedresponses().md)
