---
title: "removeValue(at:fromPropertyWithKey:)"
framework: objectivec
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/removevalue(at:frompropertywithkey:)"
---

# removeValue(at:fromPropertyWithKey:)

Removes the object at the specified index from the collection specified by the passed key.

## Declaration

```swift
func removeValue(at index: Int, fromPropertyWithKey key: String)
```

## Discussion

Discussion The method removeFrom<Key>AtIndex: is invoked if it exists. If no corresponding scripting-KVC-compliant method (-removeFrom<Key>AtIndex:) is found, this method invokes -mutableArrayValueForKey: and mutates the result. note: Prior to OS X version 10.4, this method did not invoke -mutableArrayValueForKey:.

## See Also

### Indexed access

- [insertValue(_:at:inPropertyWithKey:)](objectivec/nsobject-swift.class/insertvalue(_:at:inpropertywithkey:).md)
- [replaceValue(at:inPropertyWithKey:withValue:)](objectivec/nsobject-swift.class/replacevalue(at:inpropertywithkey:withvalue:).md)
- [value(at:inPropertyWithKey:)](objectivec/nsobject-swift.class/value(at:inpropertywithkey:).md)
