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

# flushCollection

Removes and drops references to all members of dictionary.

## Declaration

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

## See Also

### Creating a Dictionary

- [withCapacity](driverkit/osdictionary/withcapacity.md)
- [withDictionary](driverkit/osdictionary/withdictionary.md)
- [withObjects](driverkit/osdictionary/withobjects.md)
- [OSDictionaryCreate](driverkit/osdictionarycreate.md)
- [merge](driverkit/osdictionary/merge.md)
- [free](driverkit/osdictionary/free.md)
