---
title: "stopProvidingItem(at:)"
framework: fileprovider
role: symbol
role_heading: Instance Method
path: "fileprovider/nsfileproviderextension/stopprovidingitem(at:)"
---

# stopProvidingItem(at:)

Tells the File Provider extension that a given document is no longer being accessed.

## Declaration

```swift
func stopProvidingItem(at url: URL)
```

## Parameters

- `url`: The URL of a shared document.

## Discussion

Discussion The system calls this method as soon as all other processes have stopped accessing the given file. You can override this method to remove the document from the local file system, thus freeing up storage space. You must provide placeholders for any documents you remove. You must override this method, even if you only provide an empty implementation. Do not call super in your implementations.

## See Also

### Managing shared files

- [itemChanged(at:)](fileprovider/nsfileproviderextension/itemchanged(at:).md)
- [providePlaceholder(at:completionHandler:)](fileprovider/nsfileproviderextension/provideplaceholder(at:completionhandler:).md)
- [startProvidingItem(at:completionHandler:)](fileprovider/nsfileproviderextension/startprovidingitem(at:completionhandler:).md)
