---
title: "flush(agedOutOnly:)"
framework: corevideo
role: symbol
role_heading: Instance Method
path: "corevideo/cvmutablepixelbuffer/pool/flush(agedoutonly:)"
---

# flush(agedOutOnly:)

Frees as many buffers from the pool as possible.

## Declaration

```swift
final func flush(agedOutOnly: Bool = true)
```

## Parameters

- `agedOutOnly`: Only free backings that are waiting to be aged out. If false, all unused backings are flushed regardless of age.
