---
title: removeAllGoals()
framework: gameplaykit
role: symbol
role_heading: Instance Method
path: gameplaykit/gkbehavior/removeallgoals()
---

# removeAllGoals()

Removes all goals from the behavior.

## Declaration

```swift
func removeAllGoals()
```

## See Also

### Managing a Behavior’s Set of Goals

- [setWeight(_:for:)](gameplaykit/gkbehavior/setweight(_:for:).md)
- [weight(for:)](gameplaykit/gkbehavior/weight(for:).md)
- [remove(_:)](gameplaykit/gkbehavior/remove(_:).md)
- [goalCount](gameplaykit/gkbehavior/goalcount.md)
