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
labelsquery 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.
- labelName String!
- The label name you submitted, echoed back verbatim — never the workspace's stored spelling. When the same label was submitted more than once, the first spelling.
- operationId ID
- The
delete_labeloperation that owns this label's deletion; poll it withoperation(id:). Null when userErrors is non-empty. - scheduled Boolean!
- True when this label's deletion is scheduled — including when its deletion was already in flight, in which case
operationIdis that deletion's operation. False when userErrors is non-empty. Deletion is asynchronous. - userErrors [UserError!]!
- Why this label was not scheduled: a name matching no label in this workspace, a label whose deletion is being scheduled by another request, or a deletion that could not be queued. Retry the last two; the retry converges onto the same operation. Empty when scheduled.
- field [String!]
- Path to the input field that caused the error.
- message String!
- The error message.
- 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. - field [String!]
- Path to the input field that caused the error.
- message String!
- The error message.