<!-- @generated by usage-cli from usage spec -->
# `mise bootstrap packages prune`

- **Usage**: `mise bootstrap packages prune [FLAGS]`
- **Source code**: [`src/cli/system/prune.rs`](https://github.com/jdx/mise/blob/main/src/cli/system/prune.rs)

Prune installed system packages no longer declared in `[bootstrap.packages]`

Currently supports Homebrew formulae only. Pruning removes linked formulae
that are not needed by the current config or by trusted, loadable tracked
configs.

## Flags

### `-m --manager <MANAGER>`

Only prune packages for this manager. Currently only `brew` is supported

**Choices:**

- `brew`

**Default:** `brew`

### `-n --dry-run`

Print what would be removed without deleting anything

### `-y --yes`

Skip the confirmation prompt

Examples:

```
mise bootstrap packages prune --manager brew
mise bootstrap packages prune --manager brew --dry-run
mise bootstrap packages prune --manager brew --yes
```
