# LibTmux.Operation.forget!/2

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/operation.ex#L196
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-operation-forget-bang-2/

```
forget!(operation, options \\ [])
@spec forget!(t(), [option()]) :: :ok
```

Forgets the retained record or raises the same structured error.

See the [worked example](advanced-execution.html).

## Parameters

- `operation` (`t()`)
- `options` (`[option()]`)
  Default: `[]`.
