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

# remove(id:)

Remove a model by id.

## Declaration

```swift
@discardableResult mutating func remove(id: String) -> MeshResource.Model?
```

## See Also

### Using the collection

- [insert(_:)](realitykit/meshmodelcollection/insert(_:).md)
- [removeAll()](realitykit/meshmodelcollection/removeall().md)
- [update(_:)](realitykit/meshmodelcollection/update(_:).md)
- [subscript(_:)](realitykit/meshmodelcollection/subscript(_:).md)
