---
title: "removeFilePresenter(_:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/nsfilecoordinator/removefilepresenter(_:)"
---

# removeFilePresenter(_:)

Unregisters the specified file presenter object.

## Declaration

```swift
class func removeFilePresenter(_ filePresenter: any NSFilePresenter)
```

## Parameters

- `filePresenter`: The file presenter object to unregister. If the object is not currently registered, this method does nothing.

## Discussion

Discussion Call this method to unregister file presenters before those objects are deallocated, even in a garbage-collected application.

## See Also

### Managing File Presenters

- [addFilePresenter(_:)](foundation/nsfilecoordinator/addfilepresenter(_:).md)
- [filePresenters](foundation/nsfilecoordinator/filepresenters.md)
- [purposeIdentifier](foundation/nsfilecoordinator/purposeidentifier.md)
