---
title: invalidateClassDescriptionCache()
framework: foundation
role: symbol
role_heading: Type Method
path: foundation/nsclassdescription/invalidateclassdescriptioncache()
---

# invalidateClassDescriptionCache()

Removes all NSClassDescription objects from the cache.

## Declaration

```swift
class func invalidateClassDescriptionCache()
```

## Discussion

Discussion You should rarely need to invoke this method. Use it whenever a registered NSClassDescription object might be replaced by a different version, such as when you have loaded a new provider of NSClassDescription objects, or when you are about to remove a provider of NSClassDescription objects.

## See Also

### Working with class descriptions

- [init(for:)](foundation/nsclassdescription/init(for:).md)
- [register(_:for:)](foundation/nsclassdescription/register(_:for:).md)
