---
title: flushCollection
framework: Kernel
role: symbol
role_heading: Instance Method
platforms: [driverkit 19.0+, macOS 10.15+]
path: kernel/osdictionary/3180897-flushcollection
---

# flushCollection

Removes and drops references to all members of dictionary.

## Declaration

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

## See Also

### Creating a Dictionary

- [withCapacity](kernel/osdictionary/3180907-withcapacity.md)
- [withDictionary](kernel/osdictionary/3180908-withdictionary.md)
- [withObjects](kernel/osdictionary/3180909-withobjects.md)
- [merge](kernel/osdictionary/3180904-merge.md)
- [free](kernel/osdictionary/3180898-free.md)
