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

# remove(from:forMode:)

Removes the query from a specified run loop.

## Declaration

```swift
func remove(from inRunLoop: RunLoop!, forMode inMode: String!)
```

## Parameters

- `inRunLoop`: The run loop.
- `inMode`: The mode to remove the query from.

## See Also

### Managing Asynchronous Queries

- [delegate](opendirectory/odquery/delegate.md)
- [operationQueue](opendirectory/odquery/operationqueue.md)
- [schedule(in:forMode:)](opendirectory/odquery/schedule(in:formode:).md)
- [synchronize()](opendirectory/odquery/synchronize().md)
