---
title: "deleteCache(withName:)"
framework: coredata
role: symbol
role_heading: Type Method
path: "coredata/nsfetchedresultscontroller/deletecache(withname:)"
---

# deleteCache(withName:)

Deletes the cached section information with the given name.

## Declaration

```swift
class func deleteCache(withName name: String?)
```

## Parameters

- `name`: The name of the cache file to delete. If name is nil, deletes all cache files.

## See Also

### Getting Configuration Information

- [fetchRequest](coredata/nsfetchedresultscontroller/fetchrequest.md)
- [managedObjectContext](coredata/nsfetchedresultscontroller/managedobjectcontext.md)
- [sectionNameKeyPath](coredata/nsfetchedresultscontroller/sectionnamekeypath.md)
- [cacheName](coredata/nsfetchedresultscontroller/cachename.md)
- [delegate](coredata/nsfetchedresultscontroller/delegate.md)
