---
title: removeAllCachedResponses()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/urlcache/removeallcachedresponses()
---

# removeAllCachedResponses()

Clears the receiver’s cache, removing all stored cached URL responses.

## Declaration

```swift
func removeAllCachedResponses()
```

## 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)
- [removeCachedResponses(since:)](foundation/urlcache/removecachedresponses(since:).md)
