---
title: removeAllRules()
framework: gameplaykit
role: symbol
role_heading: Instance Method
path: gameplaykit/gkrulesystem/removeallrules()
---

# removeAllRules()

Removes all rules from the system.

## Declaration

```swift
func removeAllRules()
```

## Discussion

Discussion Calling this method also empties the agenda and executed arrays.

## See Also

### Related Documentation

- [agenda](gameplaykit/gkrulesystem/agenda.md)
- [executed](gameplaykit/gkrulesystem/executed.md)

### Managing a System’s List of Rules

- [rules](gameplaykit/gkrulesystem/rules.md)
- [add(_:)](gameplaykit/gkrulesystem/add(_:)-76jb5.md)
- [add(_:)](gameplaykit/gkrulesystem/add(_:)-7u5zw.md)
