# ownership.mayPrune

- **Module:** ownership
- **Package:** @libtmux/workspace
- **Language:** TypeScript
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/workspace/src/ownership.ts#L42
- **Page:** https://libtmux.org/en/ts/latest/workspace/reference/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.
