---
title: "CFArrayRemoveValueAtIndex(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfarrayremovevalueatindex(_:_:)"
---

# CFArrayRemoveValueAtIndex(_:_:)

Removes the value at a given index from an array.

## Declaration

```swift
func CFArrayRemoveValueAtIndex(_ theArray: CFMutableArray!, _ idx: CFIndex)
```

## Parameters

- `theArray`: The array from which the value is removed.
- `idx`: The index of the value to remove. The index must be in the range 0 to N-1 inclusive, where N is the count of theArray before the operation.

## Discussion

Discussion All values in theArray with indices larger than idx have their indices decreased by one.

## 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)
- [CFArrayRemoveAllValues(_:)](corefoundation/cfarrayremoveallvalues(_:).md)
- [CFArrayReplaceValues(_:_:_:_:)](corefoundation/cfarrayreplacevalues(_:_:_:_:).md)
- [CFArraySetValueAtIndex(_:_:_:)](corefoundation/cfarraysetvalueatindex(_:_:_:).md)
- [CFArraySortValues(_:_:_:_:)](corefoundation/cfarraysortvalues(_:_:_:_:).md)
