---
title: removeAll()
framework: realitykit
role: symbol
role_heading: Instance Method
path: realitykit/entitycollection/removeall()
---

# removeAll()

Removes all entities from this collection.

## Declaration

```swift
mutating func removeAll()
```
