# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appmixer.com/connector-configuration/utils/storage/clear.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
