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

# remove(at:)

Removes the entity at the given index from this collection.

## Declaration

```swift
mutating func remove(at index: Int)
```

## Parameters

- `index`: The index of the entity to remove from the collection.

## Discussion

Discussion note: This operation can invalidate the index order of any remaining entities.
