Memory Delete Component
Use the Memory Delete component to remove a stored value from a named memory. This is useful for clearing temporary data, preventing outdated values from being reused, and keeping long running workflows tidy.
Step 1: Configure Memory Name
Provide the Memory Name that groups the stored values. Only keys under this memory name are affected.
Setting | Required? | Description | Example |
---|---|---|---|
Memory Name | Yes | Namespace where the key exists. | session_memory |
Step 2: Provide Key
Specify the exact Key to remove. Only that key is deleted. Other keys in the same memory remain intact.
{
"memory_name": "session_memory",
"key": "user_id"
}
Step 3: Understand Scope Behavior
Deletion works regardless of how the value was written.
-
Request scope values
Deleting removes the value for the current execution. If the run is about to end, you may not need to delete since Request values are cleared automatically, but deleting can be useful to prevent downstream reuse in the same run. -
TTL scope values
Deleting removes the value from persistent storage immediately, even if the TTL has not expired. This prevents access from other skills or workflows that use the samememory_name
.
Best practices
- Confirm the memory name and key before deleting.
- Use unique memory names per feature or tenant to avoid cross workflow interference.
- For Request scope, prefer end of run deletes only when downstream steps could still read the value in the same execution.
- For TTL scope, set the shortest TTL that works, and delete as soon as the value is no longer needed.
Troubleshooting
FAQs
What to try next
- Store a value with Memory Write Component.
- Save multiple values at once with Memory Write Multi Component.
- Retrieve a value with Memory Read Component.