---
title: "removeObject(at:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsmutablearray/removeobject(at:)"
---

# removeObject(at:)

Removes the object at index .

## Declaration

```swift
func removeObject(at index: Int)
```

## Parameters

- `index`: The index from which to remove the object in the array. The value must not exceed the bounds of the array. important: Raises an exception NSRangeException if index is beyond the end of the array.

## Discussion

Discussion To fill the gap, all elements beyond index are moved by subtracting 1 from their index.

## See Also

### Related Documentation

- [insert(_:at:)](foundation/nsmutablearray/insert(_:at:)-5dbx5.md)

### Removing Objects

- [removeAllObjects()](foundation/nsmutablearray/removeallobjects().md)
- [removeLastObject()](foundation/nsmutablearray/removelastobject().md)
- [remove(_:)](foundation/nsmutablearray/remove(_:).md)
- [remove(_:in:)](foundation/nsmutablearray/remove(_:in:).md)
- [removeObjects(at:)](foundation/nsmutablearray/removeobjects(at:).md)
- [removeObject(identicalTo:)](foundation/nsmutablearray/removeobject(identicalto:).md)
- [removeObject(identicalTo:in:)](foundation/nsmutablearray/removeobject(identicalto:in:).md)
- [removeObjects(fromIndices:numIndices:)](foundation/nsmutablearray/removeobjects(fromindices:numindices:).md)
- [removeObjects(in:)](foundation/nsmutablearray/removeobjects(in:)-4yb26.md)
- [removeObjects(in:)](foundation/nsmutablearray/removeobjects(in:)-1udmn.md)
