---
title: NSFileProviderError.Code.nonEvictableChildren
framework: fileprovider
role: symbol
role_heading: Case
path: fileprovider/nsfileprovidererror/code/nonevictablechildren
---

# NSFileProviderError.Code.nonEvictableChildren

An error indicating that the File Provider extension can’t evict a directory because it contains nonevictable items.

## Declaration

```swift
case nonEvictableChildren
```

## Discussion

Discussion The NSFileProviderManager throws this error when you attempt to evict a directory that contains items that it can’t evict. The system sets the error’s underlyingErrors property to an array of errors that indicate the nonevictable content. important: The system limits the number of items in the underlyingErrors array, so it may not represent the complete list of nonevictable items in the directory. The underlyingErrors array contains the following possible values: Each error has an NSURLErrorKey to identify the file or directory that the error affects.

## See Also

### Error codes

- [NSFileProviderError.Code.filenameCollision](fileprovider/nsfileprovidererror/code/filenamecollision.md)
- [NSFileProviderError.Code.insufficientQuota](fileprovider/nsfileprovidererror/code/insufficientquota.md)
- [NSFileProviderError.Code.noSuchItem](fileprovider/nsfileprovidererror/code/nosuchitem.md)
- [NSFileProviderError.Code.notAuthenticated](fileprovider/nsfileprovidererror/code/notauthenticated.md)
- [NSFileProviderError.Code.serverUnreachable](fileprovider/nsfileprovidererror/code/serverunreachable.md)
- [NSFileProviderError.Code.syncAnchorExpired](fileprovider/nsfileprovidererror/code/syncanchorexpired.md)
- [pageExpired](fileprovider/nsfileprovidererror/code/pageexpired.md)
- [NSFileProviderError.Code.directoryNotEmpty](fileprovider/nsfileprovidererror/code/directorynotempty.md)
- [NSFileProviderError.Code.providerNotFound](fileprovider/nsfileprovidererror/code/providernotfound.md)
- [NSFileProviderError.Code.providerTranslocated](fileprovider/nsfileprovidererror/code/providertranslocated.md)
- [NSFileProviderError.Code.olderExtensionVersionRunning](fileprovider/nsfileprovidererror/code/olderextensionversionrunning.md)
- [NSFileProviderError.Code.newerExtensionVersionFound](fileprovider/nsfileprovidererror/code/newerextensionversionfound.md)
- [NSFileProviderError.Code.nonEvictable](fileprovider/nsfileprovidererror/code/nonevictable.md)
- [NSFileProviderError.Code.unsyncedEdits](fileprovider/nsfileprovidererror/code/unsyncededits.md)
- [NSFileProviderError.Code.cannotSynchronize](fileprovider/nsfileprovidererror/code/cannotsynchronize.md)
