---
title: invalidate()
framework: fileprovider
role: symbol
role_heading: Instance Method
path: fileprovider/nsfileproviderenumerator/invalidate()
---

# invalidate()

Stops the enumeration of items and changes.

## Declaration

```swift
func invalidate()
```

## See Also

### Enumerating Items and Changes

- [enumerateItems(for:startingAt:)](fileprovider/nsfileproviderenumerator/enumerateitems(for:startingat:).md)
- [enumerateChanges(for:from:)](fileprovider/nsfileproviderenumerator/enumeratechanges(for:from:).md)
- [currentSyncAnchor(completionHandler:)](fileprovider/nsfileproviderenumerator/currentsyncanchor(completionhandler:).md)
