---
title: "remove(from:forMode:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/stream/remove(from:formode:)"
---

# remove(from:forMode:)

Removes the receiver from a given run loop running in a given mode.

## Declaration

```swift
func remove(from aRunLoop: RunLoop, forMode mode: RunLoop.Mode)
```

## Parameters

- `aRunLoop`: The run loop on which the receiver was scheduled.
- `mode`: The mode for the run loop.

## See Also

### Managing Run Loops

- [schedule(in:forMode:)](foundation/stream/schedule(in:formode:).md)
