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

# remove(id:)

Remove a part by id.

## Declaration

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

## See Also

### Using the collection

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