---
title: flushCollection
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/oscollection/flushcollection
---

# flushCollection

## Declaration

```occ
virtual void flushCollection();
```

## See Also

### Accessing Collection Elements

- [iterateObjects](driverkit/oscollection/iterateobjects.md)
- [OSCollectionIterateObjectsBlock](driverkit/oscollectioniterateobjectsblock.md)
