# Deleting labels

### 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).

{% embed url="<https://www.loom.com/share/680ada89440e4771812f781c0153ad73?sid=a4850b80-4f1e-48f9-9f5b-481047d5ac94>" %}

### Steps

1. Query for the label

*Make sure to replace the values between the angled brackets.*

```graphql
{
  labels(filters: {value: {eq: <your label here>}}) {
    edges {
      node {
        id
        _etag
        value
      }
    }
  }
}

```

2. Delete the label

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

```

with the below variables:

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.firstresonance.io/features/labels/deleting-labels.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
