Reference
crab gc
Remove unreachable objects from storage.
Synopsis
crab gc [OPTIONS]Description
crab gc identifies and removes xorbs that are no longer referenced by any
ref in the repository. It respects a grace period to avoid deleting objects
that may be in use by concurrent operations.
For conceptual background, see Garbage Collection.
Options
| Option | Default | Description |
|---|---|---|
--dry-run | false | Show what would be deleted without removing |
--grace-period | 24h | Don't delete objects newer than this |
--json | false | Emit structured JSON output |
Examples
Preview garbage collection
crab gc --dry-runRun garbage collection
crab gcWith shorter grace period
crab gc --grace-period 1hRelated Commands
crab prune— remove local copies of remote objects.crab repack— optimize remote layout.crab fsck— verify integrity before/after GC.