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

# remove(_:)

Removes the anchor at the specified position.

## Declaration

```swift
@MainActor @preconcurrency func remove(_ entity: any HasAnchoring)
```

## Parameters

- `entity`: The anchor to remove from the collection.

## See Also

### Removing anchors

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