# Forget a note

> Deletes one saved note, by its id or by words only that note has.

Source: https://docs.go-lumen.ai/reference/steps/forget

## At a glance

| Property | Value |
| --- | --- |
| **Step name** | `forget` |
| **Resource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palette group, category** | memory, - |
| **Credits** | **0** credits each time it succeeds |
| **Side effects** | no |
| **Installation must provide** | nothing |

## Inputs

| Property | Value |
| --- | --- |
| **Needs** | nothing |
| **Produces** | `fields` |
| **Works on** | item: one document at a time |

Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See [Documents and data](https://docs.go-lumen.ai/concepts/how-flows-run.md#documents-and-data).

## Outputs

A later node references an output as `{nodeId.field}` in text, or `nodeId.field` in a condition.

| Output | Type |
| --- | --- |
| `forgotten` | boolean |
| `memoryId` | string |

## Settings

Set under `config:` on the flow node. Text settings may contain `{nodeId.field}` placeholders.

| Setting | Type | Default | Description |
| --- | --- | --- | --- |
| `id` | string |  | ID is the note to forget, as recall shows it. (maxLength 64) |
| `query` | string |  | Query forgets the one note that has all of its words; when more than one does, nothing is forgotten. (maxLength 500) |

The full JSON Schema of these settings: [forget.schema.json](https://docs.go-lumen.ai/schemas/steps/forget.schema.json).

## Use it in a flow

A node that runs `forget` goes under `spec.nodes` of a [Flow](https://docs.go-lumen.ai/concepts/how-flows-run.md#the-flow-as-yaml). Give it any id, and list the next node ids in next.

```yaml title="flow.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
  name: forget-example
  namespace: tenant-acme
spec:
  displayName: "Forget a note"
  triggers:
    - id: start
      ref: {name: manual-run}
      next: [assistant]
  nodes:
    - id: assistant
      stepRef: {name: chat-agent}
      config:
        instructions: Use the forget tool when the request needs it.
        tools: [forget]
```
