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
in
Receives the storage ID specifying which storage to clear.
Output Ports
cleared
Emits the ID of the cleared storage and the count of deleted entries.
Properties
storeId
string
The ID of the storage space to be cleared.
Processing Logic
Receives Storage ID: Accepts the
storeId
specifying which storage to clear.Clears Storage: Deletes all stored records associated with the
storeId
.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.
Last updated