Docs
Sign in

Remove run folders no run holds from a machine.

The node removes a folder only when its run is not active there, the server has acknowledged the run's result and final bundle, and the server does not still want the run; olderThanDays and runIds narrow it further.

POST/api/v1/nodes/{id}/gc

Scopesconfigapprove

dryRun reports and removes nothing. The same as koidog node gc on the machine. Waits up to 60 seconds. 409 offline and 409 not_supported as for the list. Deletes files on a machine, so a key needs approve as well as config. The timeline records the key ID, action and outcome.

Path parameters.

idstringrequired

The machine's id.

Headers.

Idempotency-Keystring

Retry the same request with the same key. Retry rules.

Body.

An omitted body is read as {}.

olderThanDays0–3650

Only folders not changed for at least this many days. Left out: any age.

dryRunboolean

Report what would be removed and remove nothing. Default false.

runIdsarray

Only these run ids. 1 to 500 items.

Response.

200 OK · JSON object

422 validation_failed
Each schema error appears in details.