---
title: "removePointer(at:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nspointerarray/removepointer(at:)"
---

# removePointer(at:)

Removes the pointer at a given index.

## Declaration

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

## Parameters

- `index`: The index of an element in the receiver. This value must be less than the doc://com.apple.foundation/documentation/Foundation/NSPointerArray/count of the receiver.

## Discussion

Discussion Elements above index, including NULL values, slide lower.

## See Also

### Managing the Collection

- [count](foundation/nspointerarray/count.md)
- [allObjects](foundation/nspointerarray/allobjects.md)
- [pointer(at:)](foundation/nspointerarray/pointer(at:).md)
- [addPointer(_:)](foundation/nspointerarray/addpointer(_:).md)
- [insertPointer(_:at:)](foundation/nspointerarray/insertpointer(_:at:).md)
- [replacePointer(at:withPointer:)](foundation/nspointerarray/replacepointer(at:withpointer:).md)
- [compact()](foundation/nspointerarray/compact().md)
