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

# remove(_:)

Removes the entity from the collection.

## Declaration

```swift
mutating func remove(_ entity: Entity)
```

## Parameters

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

## Discussion

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