> ## Documentation Index
> Fetch the complete documentation index at: https://docs.riggery.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# State delete

> Delete structured Instance records.

Deletes one or more keys from a collection.

<h2 id="input">
  Input
</h2>

Inspector **Settings**. Empty-field rules for the Graph: [Previous nodes](/graph/previous-nodes). This inspector has no **Insert value**.

On an Agent Tool, both can be **Agent decides** or **Fixed**.

| Field          | Required | Empty | Notes |
| -------------- | -------- | ----- | ----- |
| **Collection** | Yes      | Fail  |       |
| **Key**        | Yes      | Fail  |       |

<h2 id="output">
  Output
</h2>

On the next node, **Previous nodes** lists **`State delete`: Result** (`{{State delete.text}}` while the name is unique).

| Output | In menu | Type | Next node gets                                            |
| ------ | ------- | ---- | --------------------------------------------------------- |
| Result | Yes     | Text | A status line such as `Deleted 1 record(s) from "rates".` |
