---
title: "remove(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/entity/componentset/remove(_:)"
---

# remove(_:)

Removes the component of the specified type from the collection.

## Declaration

```swift
@MainActor @preconcurrency func remove(_ componentType: any Component.Type)
```

## See Also

### Updating the set

- [set(_:)](realitykit/entity/componentset/set(_:)-8sii2.md)
- [set(_:)](realitykit/entity/componentset/set(_:)-2qzsc.md)
- [removeAll()](realitykit/entity/componentset/removeall().md)
