---
title: "cancelInteraction(matching:)"
framework: tabletopkit
role: symbol
role_heading: Instance Method
path: "tabletopkit/tabletopgame/cancelinteraction(matching:)"
---

# cancelInteraction(matching:)

Cancel the local or remote interaction matching the given identifier. This causes any actions added to it to be rolled back, and releases the controlled equipment and any tossed equipment.

## Declaration

```swift
func cancelInteraction(matching interactionID: TabletopInteraction.Identifier)
```

## See Also

### Canceling interactions

- [cancelAllInteractions()](tabletopkit/tabletopgame/cancelallinteractions().md)
