# LibTmux.Recovery.cleanupRecoveries

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Recovery.hs#L98
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-recovery-v-cleanuprecoveries/

```haskell
cleanupRecoveries :: ExceptionContext -> [CleanupRecovery]
```

Signature types: [`ExceptionContext`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Control-Exception-Context.html#t:ExceptionContext), [`CleanupRecovery`](/en/haskell/latest/reference/libtmux-recovery-t-cleanuprecovery/).

Cleanup owners retained by a failed or cancelled scope. The context
 comes from [`tryTmux`](/en/haskell/latest/reference/libtmux-server-v-trytmux/) or `tryWithContext`. Inspection performs no tmux IO.
 Nested scopes can contribute overlapping owners; inspect and resume each
 retained responsibility through [`inspectCleanup`](/en/haskell/latest/reference/libtmux-recovery-v-inspectcleanup/) and [`resumeCleanup`](/en/haskell/latest/reference/libtmux-recovery-v-resumecleanup/).

## Referenced declarations

- [`LibTmux.Recovery.CleanupRecovery`](/en/haskell/latest/reference/libtmux-recovery-t-cleanuprecovery/) (data type)

## Guides

Pages that discuss `cleanupRecoveries`.

- [Capture and navigate](/en/haskell/latest/guides/capture/)
- [Create sessions, windows and panes](/en/haskell/latest/guides/creation/)
- [Shared Runtime scopes](/en/haskell/latest/guides/shared-runtime/)
