Archive API docs
    Jump to

    Narrow by kind with a prefix — q: queries, m: mutations, t: types, g: guides, f: fields and arguments.

    Jump to examples ↓
    Mutation

    deleteLabels

    Schedule deletion of up to 50 labels across the whole workspace, each with its own outcome; deletion is asynchronous and irreversible, and the creators survive. Priced per label.

    Arguments

    labelNames [String!]! required
    The labels to delete, exactly as the labels query returns them. At least 1 and at most 50. Matching ignores case and surrounding whitespace, so names that differ only by case or whitespace collapse to one result echoing the first spelling. Deletion is workspace-wide and irreversible: each label leaves the taxonomy AND every creator carrying it. A blank name refuses the whole request. Not length-limited: a label longer than the creation limit stays deletable.

    Returns

    Object, input and enum types open in place — use + to reveal their fields. A type that is already open above the row stops at a ↻ circular marker, and anything nested past the depth limit links out to its own page instead.

    results [DeleteLabelResult!]!
    One outcome per distinct submitted label, in submission order. Empty when userErrors is non-empty.
    userErrors [UserError!]!
    Errors that refused the whole request: an empty or oversized list, a blank name, a call costing more than the workspace's rate-limit capacity, or a workspace with no user to attribute the deletions to. Empty when the request was accepted — per-label refusals are reported in results.