---
title: "removeComponent(_:)"
framework: gameplaykit
role: symbol
role_heading: Instance Method
path: "gameplaykit/gkcomponentsystem/removecomponent(_:)"
---

# removeComponent(_:)

Removes the specified component instance from the component system.

## Declaration

```swift
func removeComponent(_ component: ComponentType)
```

## Parameters

- `component`: An instance of a doc://com.apple.gameplaykit/documentation/GameplayKit/GKComponent subclass in the component system.

## Discussion

Discussion If the specified component is not in the component system, this method has no effect.

## See Also

### Managing a List of Components

- [componentClass](gameplaykit/gkcomponentsystem/componentclass.md)
- [components](gameplaykit/gkcomponentsystem/components.md)
- [addComponent(_:)](gameplaykit/gkcomponentsystem/addcomponent(_:).md)
- [addComponent(foundIn:)](gameplaykit/gkcomponentsystem/addcomponent(foundin:).md)
- [removeComponent(foundIn:)](gameplaykit/gkcomponentsystem/removecomponent(foundin:).md)
