---
title: "remove(_:)"
framework: gameplaykit
role: symbol
role_heading: Instance Method
path: "gameplaykit/gkbehavior/remove(_:)"
---

# remove(_:)

Removes the specified goal from the behavior.

## Declaration

```swift
func remove(_ goal: GKGoal)
```

## Parameters

- `goal`: A goal object.

## See Also

### Managing a Behavior’s Set of Goals

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