Page kind: Reference
swarmops gc#
Describes v0.11.0Last changed View as Markdown
Remove the store's leftovers: temp files past a day, a crashed create's staging, derived values of older versions, what an upgrade left. Never an object or a changeset.
Metadata
- Group
integrity- Since
0.4.0- Mutates
- yes
- Identity required
- no
- MCP tool
gc- Envelope op
gc- Exit codes
- 0
- Errors
- none
Syntax#
swarmops gc [OPTIONS]Required arguments#
None.
Optional arguments#
The command also takes the global options.
Syntax: --dry-run.
List what it would remove, and remove nothing.
Examples#
No recorded example yet.
No recorded example yet.
Return information#
result is a GcResp (swarmops schema GcResp prints its JSON Schema).
| Field | Type | Required | Description |
|---|---|---|---|
bytes | integer | yes | The bytes of their files. |
orphan_objects | integer | yes | How many object files no changeset of the store reaches: counted, never removed. |
removed | array of GcCount | yes | How many leftovers of each kind; kinds with none are omitted. |
Envelope op: gc.
Exit codes:
0: Success.
Errors#
No golden step shows this command failing yet.
Any command that opens a store may also fail with a store error, such as E_NOT_A_REPO, E_IO or E_STORE_CORRUPT; a command line the grammar refuses is E_INVALID_ARG (exit 2).