---
title: "remove(at:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/scene/anchorcollection/remove(at:)"
---

# remove(at:)

Removes and returns the anchor at the specified position.

## Declaration

```swift
@MainActor @preconcurrency func remove(at index: Int)
```

## Parameters

- `index`: The position of the anchor to remove. Use a valid index of the collection.

## See Also

### Removing anchors

- [remove(_:)](realitykit/scene/anchorcollection/remove(_:).md)
- [removeAll()](realitykit/scene/anchorcollection/removeall().md)
- [removeAll(keepCapacity:)](realitykit/scene/anchorcollection/removeall(keepcapacity:).md)
