Skip to content
HALOWERK

Depwerk

link section garbage collection

Return retained and discarded object sections from declared roots and relocation references.

POST https://dep.halowerk.com/v1/link-section-garbage-collection

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
sectionsarrayYes
rootsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "sections": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "bytes": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "refs": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 64,
              "minLength": 1
            },
            "maxItems": 100,
            "minItems": 0
          }
        },
        "required": [
          "id",
          "bytes",
          "refs"
        ],
        "additionalProperties": false
      },
      "maxItems": 100,
      "minItems": 1
    },
    "roots": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 64,
        "minLength": 1
      },
      "maxItems": 100,
      "minItems": 0
    }
  },
  "required": [
    "sections",
    "roots"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "sections": [
    {
      "id": "main",
      "bytes": 20,
      "refs": [
        "util"
      ]
    },
    {
      "id": "util",
      "bytes": 10,
      "refs": []
    },
    {
      "id": "unused",
      "bytes": 5,
      "refs": []
    }
  ],
  "roots": [
    "main"
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’