---
title: "CFDictionaryRemoveAllValues(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfdictionaryremoveallvalues(_:)"
---

# CFDictionaryRemoveAllValues(_:)

Removes all the key-value pairs from a dictionary, making it empty.

## Declaration

```swift
func CFDictionaryRemoveAllValues(_ theDict: CFMutableDictionary!)
```

## Parameters

- `theDict`: The dictionary to modify.

## See Also

### Modifying a Dictionary

- [CFDictionaryAddValue(_:_:_:)](corefoundation/cfdictionaryaddvalue(_:_:_:).md)
- [CFDictionaryRemoveValue(_:_:)](corefoundation/cfdictionaryremovevalue(_:_:).md)
- [CFDictionaryReplaceValue(_:_:_:)](corefoundation/cfdictionaryreplacevalue(_:_:_:).md)
- [CFDictionarySetValue(_:_:_:)](corefoundation/cfdictionarysetvalue(_:_:_:).md)
