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

# Storage: Delete item

> Deletes an item in a storage based on an identifier.

export const FormField = ({property, label, required = false, diType, uiPatterns, children}) => {
  const patterns = Array.isArray(uiPatterns) ? uiPatterns : uiPatterns ? [uiPatterns] : [];
  return <div style={{
    margin: '1.5rem 0'
  }}>
      <div style={{
    display: 'flex',
    alignItems: 'baseline',
    flexWrap: 'wrap',
    gap: '0.5rem',
    marginBottom: '0.25rem'
  }}>
        <strong>{label}</strong>
        <span style={{
    fontSize: '0.7rem',
    fontWeight: 600,
    textTransform: 'uppercase',
    letterSpacing: '0.04em',
    color: required ? '#6241f5' : '#6b7280'
  }}>
          {required ? 'Required' : 'Optional'}
        </span>
      </div>

      <div>{children}</div>

      {diType || patterns.length > 0 ? <p style={{
    fontSize: '0.85rem',
    color: '#6b7280',
    marginBottom: 0
  }}>
          {diType ? <>
              See the <a href={`/references/${diType}`}>{diType}</a> reference.{' '}
            </> : null}
          {patterns.length > 0 ? <>
              Accepts a <a href={`/documentation/placeholders-and-patterns/patterns#${patterns[0]}`}>pattern</a>.
            </> : null}
        </p> : null}
    </div>;
};

Permanently removes a single item from a storage by its identifier. Use it to clean up something that was saved earlier, for example dropping a cached lookup once it is no longer needed. The deletion is permanent and is not undone if the run later fails, so be sure the identifier points at the item you really mean to remove. Your data passes through unchanged; the only effect is that the matching item is removed from the storage.

This documentation describes: [Schema](/schemas/transformer/storage-delete-entity-from-storage)

## Fields

<FormField property="storage" label="Storage" required diType="storage">
  The storage to remove the item from. See [Storage](/references/storage) for how to set one up.
</FormField>

<FormField property="storageKey" label="Storage item identifier" required>
  The identifier of the item to remove. Supports [placeholders](/references/placeholders), so the identifier can be taken from your data, for example `&{sku}`. The value must be present and cannot be empty, otherwise the run stops with an error.
</FormField>

## Sample data

This transformer removes an item from the storage as a side effect and does not alter the data passing through it, so there is no before/after to show. With the configuration below, the incoming `sku` is used as the identifier and the item stored under `SHIRT-RED-M` is permanently removed.

| Field                   | Value                |
| ----------------------- | -------------------- |
| Storage                 | A configured storage |
| Storage item identifier | `&{sku}`             |

```json Configuration theme={null}
{
  "prototype": "storage-delete-entity-from-storage",
  "parameters": {
    "storage": { "prototype": "storage", "parameters": {} },
    "storageKey": "&{sku}"
  }
}
```
