---
title: "CFDictionaryRemoveValue(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfdictionaryremovevalue(_:_:)"
---

# CFDictionaryRemoveValue(_:_:)

Removes a key-value pair.

## Declaration

```swift
func CFDictionaryRemoveValue(_ theDict: CFMutableDictionary!, _ key: UnsafeRawPointer!)
```

## Parameters

- `theDict`: The dictionary to modify.
- `key`: The key of the value to remove from theDict. If a key which matches key is present in theDict, the key-value pair is removed from the dictionary, otherwise this function does nothing (“remove if present”).

## See Also

### Modifying a Dictionary

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