---
title: "CFArrayRemoveAllValues(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfarrayremoveallvalues(_:)"
---

# CFArrayRemoveAllValues(_:)

Removes all the values from an array, making it empty.

## Declaration

```swift
func CFArrayRemoveAllValues(_ theArray: CFMutableArray!)
```

## Parameters

- `theArray`: The array from which all of the values are removed.

## See Also

### CFMutableArray Miscellaneous Functions

- [CFArrayAppendArray(_:_:_:)](corefoundation/cfarrayappendarray(_:_:_:).md)
- [CFArrayAppendValue(_:_:)](corefoundation/cfarrayappendvalue(_:_:).md)
- [CFArrayCreateMutable(_:_:_:)](corefoundation/cfarraycreatemutable(_:_:_:).md)
- [CFArrayCreateMutableCopy(_:_:_:)](corefoundation/cfarraycreatemutablecopy(_:_:_:).md)
- [CFArrayExchangeValuesAtIndices(_:_:_:)](corefoundation/cfarrayexchangevaluesatindices(_:_:_:).md)
- [CFArrayInsertValueAtIndex(_:_:_:)](corefoundation/cfarrayinsertvalueatindex(_:_:_:).md)
- [CFArrayRemoveValueAtIndex(_:_:)](corefoundation/cfarrayremovevalueatindex(_:_:).md)
- [CFArrayReplaceValues(_:_:_:_:)](corefoundation/cfarrayreplacevalues(_:_:_:_:).md)
- [CFArraySetValueAtIndex(_:_:_:)](corefoundation/cfarraysetvalueatindex(_:_:_:).md)
- [CFArraySortValues(_:_:_:_:)](corefoundation/cfarraysortvalues(_:_:_:_:).md)
