Mutation
deleteLabel
Schedule deletion of one label across the whole workspace; deletion is asynchronous and irreversible, and the creators survive.
Arguments
- labelName String! required
- The label to delete, exactly as the
labelsquery returns it. A name is the label identity — labels have no id in this API — and matching ignores case and surrounding whitespace, so any spelling of the same label deletes it. Deletion is workspace-wide and irreversible: the label leaves the taxonomy AND every creator carrying it. A blank name is rejected. 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.
- labelName String!
- The label name you submitted, echoed back verbatim — never the workspace's stored spelling.
- operationId ID
- The
delete_labeloperation that owns this label's deletion; poll it withoperation(id:). Null when userErrors is non-empty. A label operation tracks progress withstatus,totalandprocessedonly — its record-derived counts are always 0 and its item-id lists always empty. - scheduled Boolean!
- True when the deletion is scheduled — including when this label's deletion was already in flight, in which case
operationIdis that deletion's operation. False when userErrors is non-empty. Deletion is asynchronous. - userErrors [UserError!]!
- Errors that refused the request: a blank name, a name matching no label in this workspace, or a workspace with no user to attribute the deletion to. Empty on success.
- field [String!]
- Path to the input field that caused the error.
- message String!
- The error message.