| sidebar_position | 33 |
|---|---|
| title | compact |
Reclaim unused space in the repository database. Introduced in Atomic 0.20.0.
Verified against CLI 0.20.0.
atomic compact [--repository <REPOSITORY>] [--json]Deleting views, unrecording changes, and pruning data can leave unused space in the repository database. atomic compact reclaims that space. It is safe to run at any time; it never removes reachable content.
| Option | Description |
|---|---|
--repository <REPOSITORY> |
Path inside the repository or one of its sandboxes (default: .) |
--json |
Emit the database path and before/after byte counts as JSON |
# Compact the current repository
atomic compact
# Compact from inside a sandbox, targeting the parent repository
atomic compact --repository ../..
# Machine-readable result
atomic compact --json