---
title: "CFURLClearResourcePropertyCache(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfurlclearresourcepropertycache(_:)"
---

# CFURLClearResourcePropertyCache(_:)

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

## Declaration

```swift
func CFURLClearResourcePropertyCache(_ url: CFURL!)
```

## Parameters

- `url`: The URL.

## Discussion

Discussion This method is applicable only to URLs that represent file system resources. note: The caching behavior of the NSURL and CFURL APIs differ. For NSURL, all cached values (not temporary values) are automatically removed after each pass through the run loop. You only need to call the CFURL method when you want to clear the cache within a single execution of the run loop. The CFURL functions, on the other hand, do not automatically clear cached resource values. The client has complete control over the cache lifetimes, and you must use CFURLClearResourcePropertyCacheForKey(_:_:) or CFURLClearResourcePropertyCache(_:) to clear cached resource values.

## See Also

### Getting and Setting File System Resource Properties

- [CFURLClearResourcePropertyCacheForKey(_:_:)](corefoundation/cfurlclearresourcepropertycacheforkey(_:_:).md)
- [CFURLCopyResourcePropertiesForKeys(_:_:_:)](corefoundation/cfurlcopyresourcepropertiesforkeys(_:_:_:).md)
- [CFURLCopyResourcePropertyForKey(_:_:_:_:)](corefoundation/cfurlcopyresourcepropertyforkey(_:_:_:_:).md)
- [CFURLCreateResourcePropertiesForKeysFromBookmarkData(_:_:_:)](corefoundation/cfurlcreateresourcepropertiesforkeysfrombookmarkdata(_:_:_:).md)
- [CFURLCreateResourcePropertyForKeyFromBookmarkData(_:_:_:)](corefoundation/cfurlcreateresourcepropertyforkeyfrombookmarkdata(_:_:_:).md)
- [CFURLSetResourcePropertiesForKeys(_:_:_:)](corefoundation/cfurlsetresourcepropertiesforkeys(_:_:_:).md)
- [CFURLSetResourcePropertyForKey(_:_:_:_:)](corefoundation/cfurlsetresourcepropertyforkey(_:_:_:_:).md)
- [CFURLSetTemporaryResourcePropertyForKey(_:_:_:)](corefoundation/cfurlsettemporaryresourcepropertyforkey(_:_:_:).md)
