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

# removeAll()

Remove all the instances.

## Declaration

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

## See Also

### Using the collection

- [insert(_:)](realitykit/meshinstancecollection/insert(_:).md)
- [remove(id:)](realitykit/meshinstancecollection/remove(id:).md)
- [update(_:)](realitykit/meshinstancecollection/update(_:).md)
- [subscript(_:)](realitykit/meshinstancecollection/subscript(_:).md)
