# ownership.mayPrune

- **Module:** ownership
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/workspace/src/ownership.ts#L42
- **Page:** https://libtmux.org/reference/ts/ownership-mayprune/

```
ownership.mayPrune(policy: : PrunePolicy, owned: : boolean) -> boolean
```

Whether surplus topology may be removed.

`owned` is the default because it is the only one that is safe without
knowing where the session came from: a workspace prunes what it built and
leaves alone what it merely found. `always` authorizes pruning for one
operation; it does not stamp or otherwise adopt the session.
