Deleting labels

Delete labels using the API

Overall

Deleting a label will remove it from all places with ION. See below for steps on how to delete it via the API (not available in the UI yet).

Steps

  1. Query for the label

Make sure to replace the values between the angled brackets.

{
  labels(filters: {value: {eq: <your label here>}}) {
    edges {
      node {
        id
        _etag
        value
      }
    }
  }
}
  1. Delete the label

mutation DeleteLabel($id: ID!, $etag: String!) {
  deleteLabel(id: $id, etag: $etag) {
    id
  }
}

with the below variables:

{
  "id": <id from previous step>,
  "etag": <etag from previous step>
}

Last updated