---
title: removeAllBehaviors()
framework: gameplaykit
role: symbol
role_heading: Instance Method
path: gameplaykit/gkcompositebehavior/removeallbehaviors()
---

# removeAllBehaviors()

Removes all individual behaviors from the composite behavior.

## Declaration

```swift
func removeAllBehaviors()
```

## See Also

### Managing the Individual Behaviors in a Composite Behavior

- [setWeight(_:for:)](gameplaykit/gkcompositebehavior/setweight(_:for:).md)
- [weight(for:)](gameplaykit/gkcompositebehavior/weight(for:).md)
- [remove(_:)](gameplaykit/gkcompositebehavior/remove(_:).md)
- [behaviorCount](gameplaykit/gkcompositebehavior/behaviorcount.md)
