# On Item Removed

### Overview

The **On Item Removed Component** triggers when an item is removed from storage, providing real-time updates whenever a deletion occurs.

### Usage

This component is used to monitor a specified storage location and trigger workflows whenever an item is deleted.

#### Output Ports

| Port   | Description                                    |
| ------ | ---------------------------------------------- |
| `item` | Emits the details of the removed storage item. |

#### Properties

| Property  | Type     | Description                                  |
| --------- | -------- | -------------------------------------------- |
| `storeId` | `string` | The ID of the storage space being monitored. |

#### Processing Logic

1. **Registers Webhook**: The component registers a webhook to listen for storage item deletions.
2. **Monitors Deletions**: Whenever an item is removed, the webhook captures its details.
3. **Sends Data**:
   * If a deletion occurs, the component outputs the item's details to `item`.
   * The webhook ensures that only deletions are processed.

#### Output Data Schema

| Property    | Type     | Description                                   |
| ----------- | -------- | --------------------------------------------- |
| `key`       | `string` | The key of the removed item.                  |
| `value`     | `string` | The value of the removed item.                |
| `storeId`   | `string` | The storage ID where the item was removed.    |
| `createdAt` | `string` | The timestamp when the item was created.      |
| `updatedAt` | `string` | The timestamp when the item was last updated. |

### Notes

* **Real-Time Monitoring**: Captures deletions as they happen.
* **Webhook-Based Execution**: Efficiently listens for storage updates.
* **Supports Automation**: Ideal for triggering workflows when data is removed.

This component is essential for workflows that require automatic processing of deleted storage entries in real time.
