---
title: removeAllCachedResourceValues()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/url/removeallcachedresourcevalues()
---

# removeAllCachedResourceValues()

Removes all cached resource values and all temporary resource values from the URL object.

## Declaration

```swift
mutating func removeAllCachedResourceValues()
```

## Discussion

Discussion This method is currently applicable only to URLs for file system resources.

## See Also

### Accessing resource values

- [resourceValues(forKeys:)](foundation/url/resourcevalues(forkeys:).md)
- [setResourceValues(_:)](foundation/url/setresourcevalues(_:).md)
- [removeCachedResourceValue(forKey:)](foundation/url/removecachedresourcevalue(forkey:).md)
- [setTemporaryResourceValue(_:forKey:)](foundation/url/settemporaryresourcevalue(_:forkey:).md)
- [URLResourceKey](foundation/urlresourcekey.md)
- [URLResourceValues](foundation/urlresourcevalues.md)
