# Clear

### Overview

The **Clear Storage Component** deletes all stored data from a specified storage location, ensuring that previous records are erased.

### Usage

This component is used to clear a selected storage space, removing all stored entries associated with the given storage ID.

#### Input Ports

| Port | Description                                                |
| ---- | ---------------------------------------------------------- |
| `in` | Receives the storage ID specifying which storage to clear. |

#### Output Ports

| Port      | Description                                                           |
| --------- | --------------------------------------------------------------------- |
| `cleared` | Emits the ID of the cleared storage and the count of deleted entries. |

#### Properties

| Property  | Type     | Description                                |
| --------- | -------- | ------------------------------------------ |
| `storeId` | `string` | The ID of the storage space to be cleared. |

#### Processing Logic

1. **Receives Storage ID**: Accepts the `storeId` specifying which storage to clear.
2. **Clears Storage**: Deletes all stored records associated with the `storeId`.
3. **Returns Confirmation**: Outputs the `storeId` and the count of deleted records.

### Notes

* **Permanent Deletion**: Once cleared, data cannot be recovered.
* **Efficient Storage Management**: Helps maintain clean and optimized storage.
* **Workflow Control**: Useful for resetting storage before running new test cycles or workflows.

This component is essential for workflows that require periodic clearing of stored data to maintain accuracy and efficiency.
