---
title: "removeSubscriber(_:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/progress/removesubscriber(_:)"
---

# removeSubscriber(_:)

Removes a proxy progress object that the add subscriber method returns.

## Declaration

```swift
class func removeSubscriber(_ subscriber: Any)
```

## Parameters

- `subscriber`: The proxy of the progress object to observe.

## Discussion

Discussion If the block for addSubscriber(forFileURL:withPublishingHandler:) returns a closure, the system invokes that closure on the main thread when you invoke removeSubscriber(_:).

## See Also

### Observing and Controlling File Progress by Other Processes

- [addSubscriber(forFileURL:withPublishingHandler:)](foundation/progress/addsubscriber(forfileurl:withpublishinghandler:).md)
- [isOld](foundation/progress/isold.md)
- [Progress.PublishingHandler](foundation/progress/publishinghandler.md)
- [Progress.UnpublishingHandler](foundation/progress/unpublishinghandler.md)
