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

# removeAll()

Removes all anchors from the collection.

## Declaration

```swift
@MainActor @preconcurrency func removeAll()
```

## See Also

### Removing anchors

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