## Create a label

You create labels inline from any record that supports them, such as a procedure, run, purchase, or issue:

1. On the record, click **Labels** (or **Add labels**).
2. In the picker, type the label name in the **Search or create labels…** box.
3. If no matching label exists, click **Create ""**.

ION creates the label, adds it to the shared library for every object type, and applies it to the current record. To reuse it elsewhere, open the labels picker on another record and search for it.

## Delete a label

Deleting a label removes it from all records across ION. Label deletion is only available through the API; there is no UI option yet.

1. Query for the label to get its `id` and `_etag`. Replace `<your label here>` with the label value.

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

2. Delete the label using the `id` and `_etag` from the previous query.

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

Variables:

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