<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Bitcoin",
  "identifier" : "/documentation/Bitcoin/BitcoinConfig/prune(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Bitcoin"
    ],
    "preciseIdentifier" : "s:7Bitcoin0A6ConfigV5pruneyACyxGAA9PruneModeOF"
  },
  "title" : "prune(_:)"
}
-->

# prune(_:)

Enable pruning to reduce storage requirements.

```
func prune(_ mode: PruneMode) -> BitcoinConfig<N>
```

## Discussion> Note: `PruneMode.size` sets `.pruneSize` in `ConfigFlags`, enabling
> `validate()` to detect `txindex`/`coinstatsindex` conflicts.